]>
code.delx.au - gnu-emacs-elpa/log
Thien-Thi Nguyen [Wed, 21 May 2014 11:28:35 +0000 (13:28 +0200)]
[gnugo maint] Add some headers to gnugo-frolic.el; nfc.
Thien-Thi Nguyen [Wed, 21 May 2014 11:27:13 +0000 (13:27 +0200)]
[gnugo imgen] Add autoload cookie.
* packages/gnugo/gnugo-imgen.el (gnugo-imgen-create-xpms): ...for this func.
Mario Lang [Wed, 21 May 2014 21:27:44 +0000 (23:27 +0200)]
Make sure removal of $(ARCHIVE_TMP)/packages/$(pkg) does not prompt interactively.
Mario Lang [Wed, 21 May 2014 20:46:41 +0000 (22:46 +0200)]
Add packages/chess to .gitignore.
Mario Lang [Wed, 21 May 2014 20:44:09 +0000 (22:44 +0200)]
Move chess.el to externals/chess branch.
Stefan Monnier [Wed, 21 May 2014 19:21:45 +0000 (15:21 -0400)]
* .gitignore: Add ergoemacs-mode.
Stefan Monnier [Wed, 21 May 2014 19:16:33 +0000 (15:16 -0400)]
Add ergoemacs-mode; fix up externals maintenance
Stefan Monnier [Wed, 21 May 2014 17:59:24 +0000 (13:59 -0400)]
* update-archive.sh: Add "--announce <mailinglist>" argument.
(send_mail, announce_new): New functions.
(signal_error): Simplify accordingly.
Thien-Thi Nguyen [Wed, 21 May 2014 10:21:41 +0000 (12:21 +0200)]
[aa2u] Release: 1.8
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el [Version]: Bump to "1.8".
Thien-Thi Nguyen [Wed, 21 May 2014 10:13:56 +0000 (12:13 +0200)]
[aa2u] New command: aa2u-mark-as-text
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el
(aa2u--text-p): New defsubst.
(aa2u-phase-1, aa2u-phase-2): If the character
in question is ‘aa2u--text-p’, just ignore it.
(aa2u-mark-as-text): New command, w/ autoload cookie.
Thien-Thi Nguyen [Wed, 21 May 2014 08:51:17 +0000 (10:51 +0200)]
[aa2u int] Add abstraction: gsr
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el
(aa2u-phase-1 gsr): New internal func.
Thien-Thi Nguyen [Wed, 21 May 2014 07:36:58 +0000 (09:36 +0200)]
[aa2u] Declare package keywords.
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el [Keywords]: New header.
Thien-Thi Nguyen [Wed, 21 May 2014 07:34:22 +0000 (09:34 +0200)]
[aa2u maint] Add ‘Maintainer’ header per top-level README; nfc.
Thien-Thi Nguyen [Wed, 21 May 2014 07:26:01 +0000 (09:26 +0200)]
[xpm] Release: 1.0.1
* packages/xpm/xpm.el [Version]: Bump to "1.0.1".
Thien-Thi Nguyen [Wed, 21 May 2014 07:25:11 +0000 (09:25 +0200)]
[xpm] Declare package keywords.
* packages/xpm/xpm.el [Keywords]: New header.
Thien-Thi Nguyen [Wed, 21 May 2014 07:21:16 +0000 (09:21 +0200)]
[xpm] Fix byte-compilation bugs.
* packages/xpm/xpm-m2z.el: Require ‘cl’ when compiling.
* packages/xpm/xpm.el: Likewise.
Also, add "manual" autoload for ‘image-toggle-display’.
Thien-Thi Nguyen [Wed, 21 May 2014 06:28:19 +0000 (08:28 +0200)]
[gnugo] Declare package keywords.
* packages/gnugo/gnugo.el [Keywords]: New header.
Thien-Thi Nguyen [Wed, 21 May 2014 06:24:28 +0000 (08:24 +0200)]
[gnugo frolic] Promote frolic mode/funcs to feature.
* packages/gnugo/gnugo.el (gnugo-frolic-mode-map)
(gnugo-frolic-parent-buffer, gnugo-frolic-origin)
(gnugo-frolic-mode, gnugo-frolic-return-to-origin)
(gnugo-frolic-in-the-leaves, gnugo--awake, gnugo--awakened)
(gnugo--move-to-bcol, gnugo--swiz, gnugo-frolic-exchange-left)
(gnugo-frolic-rotate-left, gnugo-frolic-exchange-right)
(gnugo-frolic-rotate-right, gnugo-frolic-set-as-main-line)
(gnugo-frolic-prune-branch, gnugo--sideways)
(gnugo-frolic-backward-branch, gnugo-frolic-forward-branch)
(gnugo--vertical, gnugo-frolic-previous-move, gnugo-frolic-next-move)
(gnugo-frolic-tip-move, gnugo-frolic-mode-map): Move from here...
* packages/gnugo/gnugo-frolic.el: ...to new file; add ‘provide’ form;
add autoload cookie for ‘gnugo-frolic-in-the-leaves’.
Thien-Thi Nguyen [Wed, 21 May 2014 04:46:07 +0000 (06:46 +0200)]
fixup! [gnugo imgen] New feature: gnugo-imgen
Thien-Thi Nguyen [Wed, 21 May 2014 04:15:01 +0000 (06:15 +0200)]
[gnugo imgen] New feature: gnugo-imgen
* packages/gnugo/gnugo-imgen.el: New file.
* packages/gnugo/gnugo.el [Package-Requires]: Mention ‘xpm’.
Stefan Monnier [Tue, 20 May 2014 15:04:22 +0000 (11:04 -0400)]
* admin/archive-contents.el: Keep both home page a repository links.
Stefan Monnier [Tue, 20 May 2014 12:59:36 +0000 (08:59 -0400)]
Fix up copyright headers; add cl-lib requirement
Thien-Thi Nguyen [Mon, 19 May 2014 06:04:08 +0000 (08:04 +0200)]
[xpm maint] Add some perf ideas to HACKING; nfc.
Mario Lang [Sun, 18 May 2014 13:23:44 +0000 (15:23 +0200)]
Initial import of chess.el.
Authors are John Wiegley and myself.
Piece images are not included yet, as we need to work out copyright yet.
Plan is to convert OpenClipart pieces to the required XPM format.
Version currently set to -1, will go to 2.0 on first release.
Thien-Thi Nguyen [Sun, 18 May 2014 10:19:44 +0000 (12:19 +0200)]
[gnugo int] Accomodate XPM w/ :color-symbols property.
* packages/gnugo/gnugo.el (gnugo-venerate):
...here, propagating the foreground :color-symbols
and value, if available, to the new XPM.
Thien-Thi Nguyen [Sat, 17 May 2014 23:30:44 +0000 (01:30 +0200)]
[xpm] Release: 1.0.0
* packages/xpm/xpm.el [Version]: Bump to "1.0.0".
Thien-Thi Nguyen [Sat, 17 May 2014 23:28:12 +0000 (01:28 +0200)]
[xpm int] Doc fix.
* packages/xpm/xpm-m2z.el (xpm-m2z-ellipse): ...here.
Thien-Thi Nguyen [Sat, 17 May 2014 23:23:52 +0000 (01:23 +0200)]
[xpm int] Don't bother w/ rows outside form bb.
* packages/xpm/xpm.el (xpm-raster): ...here.
Thien-Thi Nguyen [Sat, 17 May 2014 23:09:57 +0000 (01:09 +0200)]
[xpm int] Compute bool-vector length exactly once.
* packages/xpm/xpm.el (xpm-raster): ...here.
Mario Lang [Sat, 17 May 2014 22:15:27 +0000 (00:15 +0200)]
Add new simple package poker.el.
Thien-Thi Nguyen [Sat, 17 May 2014 22:06:17 +0000 (00:06 +0200)]
[xpm maint] Add HACKING; nfc.
Thien-Thi Nguyen [Sat, 17 May 2014 21:44:24 +0000 (23:44 +0200)]
[xpm maint] Add debugging aid Emacs Lisp file.
* packages/xpm/flower.el: New file.
* packages/xpm/.elpaignore: Update.
Thien-Thi Nguyen [Sat, 17 May 2014 21:32:48 +0000 (23:32 +0200)]
[xpm] Add Emacs Lisp files.
* packages/xpm/xpm.el: New file.
* packages/xpm/xpm-m2z.el: New file.
Thien-Thi Nguyen [Fri, 16 May 2014 16:21:25 +0000 (18:21 +0200)]
[xpm maint] Add .elpaignore and NEWS files; nfc.
Toby S. Cubitt [Thu, 15 May 2014 08:55:59 +0000 (09:55 +0100)]
queue.el: fix buggy queue-first and queue-empty definitions.
Thien-Thi Nguyen [Mon, 12 May 2014 13:00:11 +0000 (15:00 +0200)]
[gnugo maint] Add ‘Maintainer’ header per top-level README; nfc.
Stefan Monnier [Mon, 12 May 2014 06:55:26 +0000 (02:55 -0400)]
* .gitignore: Add "rudel".
Stefan Monnier [Mon, 12 May 2014 06:27:50 +0000 (02:27 -0400)]
Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa
Stefan Monnier [Mon, 12 May 2014 06:27:31 +0000 (02:27 -0400)]
Add "rudel" to the list of externals.
Thien-Thi Nguyen [Sun, 11 May 2014 11:52:45 +0000 (13:52 +0200)]
[aa2u] Release: 1.7
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el [Version]: Bump to "1.7".
Thien-Thi Nguyen [Sun, 11 May 2014 11:32:42 +0000 (13:32 +0200)]
[aa2u] New command: aa2u-rectangle
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el (aa2u-rectangle): New command.
Andreas Schwab [Sun, 11 May 2014 08:33:13 +0000 (10:33 +0200)]
ascii-art-to-unicode.el (aa2u-replacement): Use cl-case instead of case.
Stefan Monnier [Sat, 10 May 2014 19:14:28 +0000 (15:14 -0400)]
Update copyright_exceptions
Thien-Thi Nguyen [Fri, 9 May 2014 16:43:01 +0000 (18:43 +0200)]
fixup! [aa2u] Make weight dynamically customizable.
Thien-Thi Nguyen [Fri, 9 May 2014 16:08:50 +0000 (18:08 +0200)]
[aa2u maint] Update HACKING; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 16:06:42 +0000 (18:06 +0200)]
[aa2u] Make weight dynamically customizable.
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el
(aa2u-uniform-weight): New defvar.
(aa2u-ucs-bd-uniform-name): Don't take arg WEIGHT;
instead, consult ‘aa2u-uniform-weight’.
(aa2u-phase-1, aa2u-replacement):
Update calls to ‘aa2u-ucs-bd-uniform-name’.
(aa2u): Mention new var in docstring.
Thien-Thi Nguyen [Fri, 9 May 2014 15:42:09 +0000 (17:42 +0200)]
[aa2u int] Compute vertical/horizontal components separately.
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el
(aa2u-replacement ok): Recognize ‘UP’, ‘DOWN’, ‘LEFT’, ‘RIGHT’
instead of ‘n’, ‘s’, ‘w’, ‘e’.
(aa2u-replacement two-p): New internal func.
(aa2u-replacement just): Likewise.
(aa2u-replacement): Don't glom everything for one ‘pcase’;
instead, construct args to ‘aa2u-ucs-bd-uniform-name’
by computing vertical and horizontal components separately.
Thien-Thi Nguyen [Fri, 9 May 2014 14:58:43 +0000 (16:58 +0200)]
[aa2u int] Don't use ‘cl-labels’ when ‘cl-flet*’ will do.
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el (aa2u-replacement): ...here.
Thien-Thi Nguyen [Fri, 9 May 2014 14:17:36 +0000 (16:17 +0200)]
[aa2u int] Add "Tip Jar" URL in Commentary; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 10:50:16 +0000 (12:50 +0200)]
[aa2u maint] Extract NEWS and HACKING to separate files; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 09:32:56 +0000 (11:32 +0200)]
[gnugo int] Add section "Tip Jar" in Commentary; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 06:35:12 +0000 (08:35 +0200)]
[gnugo int] Replace COND expression w/ IF.
Incidentally, this reduces the byte code from 19 to 14 insn.
* packages/gnugo/gnugo.el (gnugo-fancy-undo):
...here, replacing last two clauses w/ ‘car-safe’ expression.
Thien-Thi Nguyen [Thu, 8 May 2014 09:42:47 +0000 (11:42 +0200)]
[aa2u] Release: 1.6
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el [Version]: Bump to "1.6".
Thien-Thi Nguyen [Thu, 8 May 2014 09:41:43 +0000 (11:41 +0200)]
[aa2u] Fix bug: Make ‘M-x aa2u’ operate on accessible portion.
Regression introduced 2014-04-03, "Make ‘aa2u’ region-aware".
* packages/ascii-art-to-unicode/ascii-art-to-unicode.el (aa2u):
Take optional arg INTERACTIVE; add "p" to ‘interactive’ form;
when INTERACTIVE and region is not active, set BEG, END.
Eric Schulte [Wed, 7 May 2014 03:09:51 +0000 (23:09 -0400)]
Merge commit '
aecfbcbc10cf03ec94062ac3e590f8118e5a0434 '
Bumping version of the web-server to 0.1.1.
Eric Schulte [Wed, 7 May 2014 03:03:57 +0000 (23:03 -0400)]
bump version to 0.1.1
- increment Emacs version to move past eieio bug requiring cl
- now passing all tests on windows
Eric Schulte [Wed, 7 May 2014 03:01:11 +0000 (23:01 -0400)]
passing all tests on Windows
Leo Liu [Tue, 6 May 2014 06:33:56 +0000 (14:33 +0800)]
Merge branch 'master' of github.com:leoliu/ggtags
Leo Liu [Tue, 6 May 2014 01:53:17 +0000 (09:53 +0800)]
For #52: new var ggtags-global-search-libpath-for-reference
Update NEWS for 0.8.4.
Thien-Thi Nguyen [Sat, 3 May 2014 14:18:28 +0000 (16:18 +0200)]
[gnugo int] Use private obarray for :all-yy elems, display props.
* packages/gnugo/gnugo.el (gnugo-put): Update :all-yy blurb.
(gnugo-f): Rewrite.
(gnugo-cleanup): Don't bother w/ symbol cleanup.
(gnugo-board-mode): Init :obarray.
Thien-Thi Nguyen [Sat, 3 May 2014 10:04:55 +0000 (12:04 +0200)]
[gnugo] Fix bug: For GTP "help COMMAND", leave point in right place.
* packages/gnugo/gnugo.el (:gnugo-gtp-command-spec help):
When COMMANd is specified and found, use a marker to hold its
position, and after moving point there, make it point nowhere.
Thien-Thi Nguyen [Sat, 3 May 2014 08:10:19 +0000 (10:10 +0200)]
[gnugo int] Simplify COND expression.
* packages/gnugo/gnugo.el (gnugo-yy):
Check ‘symbolp’ first; avoid ‘consp’ and ‘and’ altogether.
Thien-Thi Nguyen [Sat, 3 May 2014 06:52:09 +0000 (08:52 +0200)]
[gnugo int] Use ‘loop ... collect’ more.
* packages/gnugo/gnugo.el (gnugo-describe-internal-properties): ...here.
Thien-Thi Nguyen [Sat, 3 May 2014 05:56:28 +0000 (07:56 +0200)]
[gnugo frolic] Add command to navigate to end of branch.
* packages/gnugo/gnugo.el (gnugo-frolic-tip-move): New command.
(gnugo-frolic-mode-map): Add binding for ‘t’.
Eric Schulte [Fri, 2 May 2014 22:16:31 +0000 (16:16 -0600)]
increasingly windows robustness of tests
Eric Schulte [Fri, 2 May 2014 15:25:52 +0000 (09:25 -0600)]
don't assume temporary file directory name
Instead use temporary-file-directory. Hopefully this helps for
testing on windows.
Thien-Thi Nguyen [Fri, 2 May 2014 13:56:29 +0000 (15:56 +0200)]
[gnugo] Replace ‘gnugo-toggle-grid’ w/ ‘gnugo-grid-mode’.
* packages/gnugo/gnugo.el (gnugo-grid-mode): New command.
(gnugo-toggle-grid): Delete command.
(gnugo-board-mode-map): Update binding for ‘g’.
Thien-Thi Nguyen [Fri, 2 May 2014 13:50:03 +0000 (15:50 +0200)]
[gnugo] Replace ‘gnugo-toggle-image-display-command’ w/ ‘gnugo-image-display-mode’.
* packages/gnugo/gnugo.el (gnugo-image-display-mode): New command.
(gnugo-toggle-image-display-command): Delete command.
(gnugo-board-mode-map): Update binding for ‘i’.
Eric Schulte [Fri, 2 May 2014 13:54:48 +0000 (09:54 -0400)]
TODO pass all tests on Windows [0/2]
Thien-Thi Nguyen [Fri, 2 May 2014 13:24:45 +0000 (15:24 +0200)]
[gnugo int] Mention ‘gnugo-frolic-mode-map’ in Commentary; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 12:16:27 +0000 (14:16 +0200)]
[gnugo int] Commentary munging; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 09:26:13 +0000 (11:26 +0200)]
[gnugo int] Decruft: Drop :local-xpms support.
* packages/gnugo/gnugo.el (gnugo-describe-internal-properties): ...here.
(gnugo-toggle-image-display): Don't consult :local-xpms.
Thien-Thi Nguyen [Fri, 2 May 2014 09:23:29 +0000 (11:23 +0200)]
[gnugo] Handle function for ‘gnugo-xpms’ value.
* packages/gnugo/gnugo.el (gnugo-xpms): Update docstring.
(gnugo-toggle-image-display): If ‘gnugo-xpms’
is a function, call it with the board size and
take its rv as the set of XPM images to use.
Thien-Thi Nguyen [Fri, 2 May 2014 08:40:42 +0000 (10:40 +0200)]
[gnugo] Make ‘gnugo-xpms’ a normal var; drop it as feature.
* packages/gnugo/gnugo.el (gnugo-xpms): Move earlier
in file, to "uninquisitive programmer" section;
remove ‘eval-when-compile’ wrap; add docstring.
(gnugo-toggle-image-display): Don't ‘(require 'gnugo-xmps)’;
don't gate ‘gnugo-xpms’ access w/ ‘boundp’.
Thien-Thi Nguyen [Fri, 2 May 2014 07:00:16 +0000 (09:00 +0200)]
[gnugo] Publicize ‘gnugo-undo-reaction’.
Omission from 2014-05-01, "Make climb-to-root
"GNU Go to play" reaction customizable".
* packages/gnugo/gnugo.el [Commentary]: ...here.
Thien-Thi Nguyen [Fri, 2 May 2014 06:53:27 +0000 (08:53 +0200)]
[gnugo int] Decruft: Presume ‘display-images-p’.
* packages/gnugo/gnugo.el (gnugo-toggle-image-display):
Don't gate ‘display-images-p’ call w/ ‘fboundp’.
Thien-Thi Nguyen [Fri, 2 May 2014 06:52:58 +0000 (08:52 +0200)]
[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 04:47:03 +0000 (06:47 +0200)]
[gnugo] Make SGF I/O commands change ‘default-directory’.
* packages/gnugo/gnugo.el (gnugo--ok-file): New func.
(gnugo-write-sgf-file, gnugo-read-sgf-file): Don't
clear buffer-modified state; instead, call ‘gnugo--ok-file’.
Eric Schulte [Fri, 2 May 2014 03:11:16 +0000 (23:11 -0400)]
pass the silent flag to curl for all request types
Barry O'Reilly [Thu, 1 May 2014 20:42:52 +0000 (16:42 -0400)]
Fix bug that caused undo-tree to hang when undoing in region (bug#16377).
Eric Schulte [Thu, 1 May 2014 19:13:53 +0000 (15:13 -0400)]
remove coding conversion from main network process
This fixes a serious bug on windows in which the required \r\n line
endings were being automatically converted to a single \n. Thanks to
thesoftwarebin on github for identifying and diagnosing this problem,
and then confirming the fix.
Thien-Thi Nguyen [Thu, 1 May 2014 17:49:59 +0000 (19:49 +0200)]
[gnugo] Make climb-to-root "GNU Go to play" reaction customizable.
* packages/gnugo/gnugo.el (gnugo-undo-reaction): New defvar.
(gnugo--user-play): Inhibit karmic error for one-shot.
(gnugo--climb-towards-root): Don't take 2nd arg NOALT;
instead, take 2nd arg REACTION; drop "POS not occupied by COLOR"
check and error; rewrite handling for "GNU Go to play" case.
(gnugo-undo-one-move): Call ‘gnugo--climb-towards-root’ w/
‘gnugo-undo-reaction’ value clamped to ‘zombie’/‘one-shot’.
Eric Schulte [Thu, 1 May 2014 14:10:36 +0000 (10:10 -0400)]
Merge pull request #3 from thesoftwarebin/master
Small correction of a usage example in ws-start docstring
Thien-Thi Nguyen [Wed, 30 Apr 2014 07:34:27 +0000 (09:34 +0200)]
[gnugo int] Move karma state normalization down-chain.
* packages/gnugo/gnugo.el (gnugo--karma): Always return boolean.
(gnugo--assist-state, gnugo--struggle): Don't normalize here.
Thien-Thi Nguyen [Wed, 30 Apr 2014 07:29:48 +0000 (09:29 +0200)]
[gnugo int] Add abstraction: gnugo--assist-state
* packages/gnugo/gnugo.el (gnugo--assist-state): New func.
(gnugo--climb-towards-root, gnugo-assist-mode): Use it.
Thien-Thi Nguyen [Wed, 30 Apr 2014 07:19:04 +0000 (09:19 +0200)]
[gnugo] Refuse to climb towards root when in Assist mode.
* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Signal ‘user-error’ if Assist mode is enabled.
Thien-Thi Nguyen [Wed, 30 Apr 2014 06:55:09 +0000 (08:55 +0200)]
[gnugo] Fix bug: On role switch, flip karma after roles.
Omission from 2014-04-29, "Replace
abdication w/ Assist and Zombie minor modes".
* packages/gnugo/gnugo.el (gnugo-undo-one-move): Call
‘gnugo--who-is-who’ after switching :gnugo-color, :user-color.
Thien-Thi Nguyen [Wed, 30 Apr 2014 06:35:06 +0000 (08:35 +0200)]
[gnugo int] Move some ‘gnugo-gate’ calls down-chain.
* packages/gnugo/gnugo.el (gnugo-animate-group)
(gnugo-display-group-data): ...to here...
(gnugo-worm-stones, gnugo-worm-data)
(gnugo-dragon-stones, gnugo-dragon-data): ...from here.
Thien-Thi Nguyen [Wed, 30 Apr 2014 06:13:07 +0000 (08:13 +0200)]
[gnugo int] Drop redundant ‘gnugo-gate’ calls.
* packages/gnugo/gnugo.el (gnugo-undo-two-moves, gnugo-oops): ...here.
The Software Bin [Wed, 30 Apr 2014 00:19:15 +0000 (02:19 +0200)]
Corrected example in ws-start docstring
Thien-Thi Nguyen [Tue, 29 Apr 2014 10:29:23 +0000 (12:29 +0200)]
[gnugo int] Comment munging; nfc.
Thien-Thi Nguyen [Tue, 29 Apr 2014 09:30:48 +0000 (11:30 +0200)]
[gnugo] Replace abdication w/ Assist and Zombie minor modes.
* packages/gnugo/gnugo.el (gnugo--instant-karma): Delete func.
(gnugo--turn-the-wheel): New func.
(gnugo--finish-move): Take optional arg NOW;
call ‘gnugo--turn-the-wheel’ with it at end.
(gnugo-get-move-insertion-filter): Don't do :abd update.
(gnugo--karma): New func.
(gnugo--:karma): New defsubst.
(gnugo--user-play): Signal ‘user-error’ if current player karmic;
don't call ‘gnugo-get-move’; call ‘gnugo--finish-move’ w/ NOW ‘t’.
(gnugo--dance-dance): New func.
(gnugo--who-is-who): On switch, also flip karma.
(gnugo--climb-towards-root): Don't call ‘gnugo-get-move’;
instead, temporarily make :gnugo-color unkarmic
around call to ‘gnugo--turn-the-wheel’.
(gnugo-toggle-abdication): Delete command.
(gnugo--struggle): New func.
(gnugo-assist-mode, gnugo-zombie-mode): New commands.
(gnugo): Init :wheel; don't call ‘gnugo-get-move’;
instead, call ‘gnugo--turn-the-wheel’.
(gnugo-board-mode-map): Bind ‘C-c C-a’ to ‘gnugo-assist-mode’;
add binding for ‘C-c C-z’.
Thien-Thi Nguyen [Sun, 27 Apr 2014 12:52:11 +0000 (14:52 +0200)]
[gnugo int] Maintain current buffer in ‘gnugo--finish-move’.
* packages/gnugo/gnugo.el (gnugo--finish-move):
Don't take arg BUF; instead, note and restore
the current buffer around the call to ‘run-hooks’.
(gnugo-get-move-insertion-filter)
(gnugo-user-play): Update accordingly.
Thien-Thi Nguyen [Sun, 27 Apr 2014 11:54:15 +0000 (13:54 +0200)]
[gnugo int] Avoid superfluous ‘gnugo-other’ call.
* packages/gnugo/gnugo.el (gnugo-toggle-abdication): ...here.
Stefan Monnier [Tue, 29 Apr 2014 05:13:19 +0000 (01:13 -0400)]
* nlinum.el (nlinum-format): New custom variable.
(nlinum--region): Change calling convention of nlinum-format-function.
(nlinum-format-function): Change default value accordingly; Use nlinum-format;
Try to generate less garbage.
Thien-Thi Nguyen [Sun, 27 Apr 2014 10:19:00 +0000 (12:19 +0200)]
[gnugo int] Drop abstractions: gnugo--{ERR-wait,gate-game-over}
* packages/gnugo/gnugo.el (gnugo--gate-game-over)
(gnugo--ERR-wait): Delete, incorporating them into...
(gnugo-gate): ...here.
Thien-Thi Nguyen [Sun, 27 Apr 2014 10:14:36 +0000 (12:14 +0200)]
[gnugo int] Fix bug: Use correct color for "Not your turn yet".
Regression introduced 2014-04-22, "Use ‘destructuring-bind’
more", in the player-agnostic side-effect. :-/
* packages/gnugo/gnugo.el (gnugo-gate):
For "Not your turn yet", use ‘(gnugo-other color)’.
Thien-Thi Nguyen [Sun, 27 Apr 2014 09:46:56 +0000 (11:46 +0200)]
[gnugo int] Compute "Abd" in mode-line at time of change.
* packages/gnugo/gnugo.el (gnugo-btw): New var.
(gnugo--instant-karma): New func.
(gnugo-refresh): Don't compute "Abd" here.
(gnugo-toggle-abdication): Use ‘gnugo--instant-karma’.
(gnugo-board-mode): Init ‘gnugo-btw’ as
buffer-local var; include it in ‘minor-mode-alist’.
Thien-Thi Nguyen [Fri, 25 Apr 2014 13:02:36 +0000 (15:02 +0200)]
[gnugo] Conditionalize xform warping on abdication disable.
* packages/gnugo/gnugo.el (gnugo-toggle-abdication):
For xform, don't specify ‘nowarp’ unconditionally; instead,
if user appears to be "following along", specify ‘t’;
move xform path completely inside disable path.
Thien-Thi Nguyen [Fri, 25 Apr 2014 11:18:16 +0000 (13:18 +0200)]
[gnugo] Don't display "Abdication {en,dis}abled".
That tends to persist in the echo area, which is
both annoying and misleading should the game end.
* packages/gnugo/gnugo.el (gnugo--display-suggestion): New func.
(gnugo-get-move-insertion-filter): Use it.
(gnugo-toggle-abdication): Use ‘force-mode-line-update’;
don't ‘message’ state; however, retain "suggestion
forthcoming" message via ‘gnugo--display-suggestion’.