]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
10 years agoAdd "rudel" to the list of externals.
Stefan Monnier [Mon, 12 May 2014 06:27:31 +0000 (02:27 -0400)]
Add "rudel" to the list of externals.

10 years agoUpdate copyright_exceptions
Stefan Monnier [Sat, 10 May 2014 19:14:28 +0000 (15:14 -0400)]
Update copyright_exceptions

10 years agofixup! [aa2u] Make weight dynamically customizable.
Thien-Thi Nguyen [Fri, 9 May 2014 16:43:01 +0000 (18:43 +0200)]
fixup! [aa2u] Make weight dynamically customizable.

10 years ago[aa2u maint] Update HACKING; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 16:08:50 +0000 (18:08 +0200)]
[aa2u maint] Update HACKING; nfc.

10 years ago[aa2u] Make weight dynamically customizable.
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.

10 years ago[aa2u int] Compute vertical/horizontal components separately.
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.

10 years ago[aa2u int] Don't use ‘cl-labels’ when ‘cl-flet*’ will do.
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.

10 years ago[aa2u int] Add "Tip Jar" URL in Commentary; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 14:17:36 +0000 (16:17 +0200)]
[aa2u int] Add "Tip Jar" URL in Commentary; nfc.

10 years ago[aa2u maint] Extract NEWS and HACKING to separate files; 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.

10 years ago[gnugo int] Add section "Tip Jar" in Commentary; nfc.
Thien-Thi Nguyen [Fri, 9 May 2014 09:32:56 +0000 (11:32 +0200)]
[gnugo int] Add section "Tip Jar" in Commentary; nfc.

10 years ago[gnugo int] Replace COND expression w/ IF.
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.

10 years ago[aa2u] Release: 1.6
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".

10 years ago[aa2u] Fix bug: Make ‘M-x aa2u’ operate on accessible portion.
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.

10 years agoMerge commit 'aecfbcbc10cf03ec94062ac3e590f8118e5a0434'
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.

10 years agobump version 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

10 years agopassing all tests on Windows
Eric Schulte [Wed, 7 May 2014 03:01:11 +0000 (23:01 -0400)]
passing all tests on Windows

10 years agoMerge branch 'master' of github.com:leoliu/ggtags
Leo Liu [Tue, 6 May 2014 06:33:56 +0000 (14:33 +0800)]
Merge branch 'master' of github.com:leoliu/ggtags

10 years agoFor #52: new var ggtags-global-search-libpath-for-reference
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.

10 years ago[gnugo int] Use private obarray for :all-yy elems, display props.
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.

10 years ago[gnugo] Fix bug: For GTP "help COMMAND", leave point in right place.
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.

10 years ago[gnugo int] Simplify COND expression.
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.

10 years ago[gnugo int] Use ‘loop ... collect’ more.
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.

10 years ago[gnugo frolic] Add command to navigate to end of branch.
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’.

10 years agoincreasingly windows robustness of tests
Eric Schulte [Fri, 2 May 2014 22:16:31 +0000 (16:16 -0600)]
increasingly windows robustness of tests

10 years agodon't assume temporary file directory name
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.

10 years ago[gnugo] Replace ‘gnugo-toggle-grid’ w/ ‘gnugo-grid-mode’.
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’.

10 years ago[gnugo] Replace ‘gnugo-toggle-image-display-command’ w/ ‘gnugo-image-display-mode’.
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’.

10 years agoTODO pass all tests on Windows [0/2]
Eric Schulte [Fri, 2 May 2014 13:54:48 +0000 (09:54 -0400)]
TODO pass all tests on Windows [0/2]

10 years ago[gnugo int] Mention ‘gnugo-frolic-mode-map’ in Commentary; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 13:24:45 +0000 (15:24 +0200)]
[gnugo int] Mention ‘gnugo-frolic-mode-map’ in Commentary; nfc.

10 years ago[gnugo int] Commentary munging; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 12:16:27 +0000 (14:16 +0200)]
[gnugo int] Commentary munging; nfc.

10 years ago[gnugo int] Decruft: Drop :local-xpms support.
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.

10 years ago[gnugo] Handle function for ‘gnugo-xpms’ value.
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.

10 years ago[gnugo] Make ‘gnugo-xpms’ a normal var; drop it as feature.
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’.

10 years ago[gnugo] Publicize ‘gnugo-undo-reaction’.
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.

10 years ago[gnugo int] Decruft: Presume ‘display-images-p’.
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’.

10 years ago[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Fri, 2 May 2014 06:52:58 +0000 (08:52 +0200)]
[gnugo maint] Update HACKING; nfc.

10 years ago[gnugo] Make SGF I/O commands change ‘default-directory’.
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’.

10 years agopass the silent flag to curl for all request types
Eric Schulte [Fri, 2 May 2014 03:11:16 +0000 (23:11 -0400)]
pass the silent flag to curl for all request types

10 years agoFix bug that caused undo-tree to hang when undoing in region (bug#16377).
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).

10 years agoremove coding conversion from main network process
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.

10 years ago[gnugo] Make climb-to-root "GNU Go to play" reaction customizable.
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’.

10 years agoMerge pull request #3 from thesoftwarebin/master
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

10 years ago[gnugo int] Move karma state normalization down-chain.
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.

10 years ago[gnugo int] Add abstraction: gnugo--assist-state
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.

10 years ago[gnugo] Refuse to climb towards root when in Assist mode.
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.

10 years ago[gnugo] Fix bug: On role switch, flip karma after roles.
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.

10 years ago[gnugo int] Move some ‘gnugo-gate’ calls down-chain.
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.

10 years ago[gnugo int] Drop redundant ‘gnugo-gate’ calls.
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.

10 years agoCorrected example in ws-start docstring
The Software Bin [Wed, 30 Apr 2014 00:19:15 +0000 (02:19 +0200)]
Corrected example in ws-start docstring

10 years ago[gnugo int] Comment munging; nfc.
Thien-Thi Nguyen [Tue, 29 Apr 2014 10:29:23 +0000 (12:29 +0200)]
[gnugo int] Comment munging; nfc.

10 years ago[gnugo] Replace abdication w/ Assist and Zombie minor modes.
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’.

10 years ago[gnugo int] Maintain current buffer in ‘gnugo--finish-move’.
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.

10 years ago[gnugo int] Avoid superfluous ‘gnugo-other’ call.
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.

10 years ago* nlinum.el (nlinum-format): New custom variable.
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.

10 years ago[gnugo int] Drop abstractions: gnugo--{ERR-wait,gate-game-over}
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.

10 years ago[gnugo int] Fix bug: Use correct color for "Not your turn yet".
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)’.

10 years ago[gnugo int] Compute "Abd" in mode-line at time of change.
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’.

10 years ago[gnugo] Conditionalize xform warping on abdication disable.
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.

10 years ago[gnugo] Don't display "Abdication {en,dis}abled".
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’.

10 years agofixup! [gnugo int] Decorate w/ plist instead of alist.
Thien-Thi Nguyen [Thu, 24 Apr 2014 22:50:58 +0000 (00:50 +0200)]
fixup! [gnugo int] Decorate w/ plist instead of alist.

10 years ago[gnugo int] Decorate w/ plist instead of alist.
Thien-Thi Nguyen [Thu, 24 Apr 2014 22:03:22 +0000 (00:03 +0200)]
[gnugo int] Decorate w/ plist instead of alist.

* packages/gnugo/gnugo.el (gnugo--decorate):
Rewrite; convert from defsubst to defun.
(gnugo-display-final-score, gnugo-comment)
(gnugo r!): Update accordingly.

10 years agoChange echo statements during build.
Barry O'Reilly [Thu, 24 Apr 2014 21:23:01 +0000 (17:23 -0400)]
Change echo statements during build.

10 years agoDon't allow package-initialize to use ~/.emacs.d
Nicolas Richard [Thu, 24 Apr 2014 21:16:10 +0000 (17:16 -0400)]
Don't allow package-initialize to use ~/.emacs.d

10 years ago[gnugo int] Snoop ‘--handicap N’ for empty new board.
Thien-Thi Nguyen [Thu, 24 Apr 2014 18:05:58 +0000 (20:05 +0200)]
[gnugo int] Snoop ‘--handicap N’ for empty new board.

Regression introduced from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo] Make undo commands silently handle overkill.
Thien-Thi Nguyen [Thu, 24 Apr 2014 13:00:37 +0000 (15:00 +0200)]
[gnugo] Make undo commands silently handle overkill.

It's impolite to reflect impoliteness.  :-D

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Don't use ‘gnugo--q/ue’ for GTP "undo"; instead,
use ‘gnugo--q’, detect overkill, and stop looping.

10 years ago[gnugo int] Add abstraction: gnugo--no-worries
Thien-Thi Nguyen [Thu, 24 Apr 2014 12:41:41 +0000 (14:41 +0200)]
[gnugo int] Add abstraction: gnugo--no-worries

* packages/gnugo/gnugo.el (gnugo--no-worries): New defsubst.
(gnugo--q/ue): Use ‘gnugo--no-worries’.

10 years ago[gnugo int] Add abstraction: gnugo--resignp
Thien-Thi Nguyen [Thu, 24 Apr 2014 09:49:18 +0000 (11:49 +0200)]
[gnugo int] Add abstraction: gnugo--resignp

* packages/gnugo/gnugo.el (gnugo--resignp): New defsubst.
(gnugo-move-history, gnugo-push-move, gnugo-refresh)
(gnugo-display-final-score): Use ‘gnugo--resignp’.

10 years ago[gnugo int] Drop abstraction: pretty
Thien-Thi Nguyen [Thu, 24 Apr 2014 09:42:06 +0000 (11:42 +0200)]
[gnugo int] Drop abstraction: pretty

* packages/gnugo/gnugo.el (gnugo-move-history pretty):
Delete internal func.
(gnugo-move-history next): Revert to pre-‘pretty’ code.
(gnugo-move-history): For ‘bpos’ RSEL, convert search
condition from two negated string comparisons to one
"normal CC" position detection, and delay ‘as-pos’
call to rv computation.

10 years agoDoc and indentation fix
Leo Liu [Thu, 24 Apr 2014 02:58:02 +0000 (10:58 +0800)]
Doc and indentation fix

Fix indentation for cl-labels and ggtags-with-current-project.
Fix FORMAT arg to with-demoted-errors.

10 years ago[gnugo int] Move ‘gnugo--passp’ earlier in file.
Thien-Thi Nguyen [Wed, 23 Apr 2014 20:14:25 +0000 (22:14 +0200)]
[gnugo int] Move ‘gnugo--passp’ earlier in file.

* packages/gnugo/gnugo.el (gnugo--passp):
...so that it precedes its first use.

10 years ago[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Wed, 23 Apr 2014 09:04:37 +0000 (11:04 +0200)]
[gnugo maint] Update HACKING; nfc.

10 years ago[gnugo int] Use ‘gnugo-current-player’ more.
Thien-Thi Nguyen [Tue, 22 Apr 2014 16:18:24 +0000 (18:18 +0200)]
[gnugo int] Use ‘gnugo-current-player’ more.

* packages/gnugo/gnugo.el (gnugo-refresh):
...here, obsoleting two local vars, as well.

10 years ago[gnugo] Fix bug: Use ‘gnugo-gate’ for abdication enable.
Thien-Thi Nguyen [Tue, 22 Apr 2014 16:09:57 +0000 (18:09 +0200)]
[gnugo] Fix bug: Use ‘gnugo-gate’ for abdication enable.

Gating only on game-over is not enough.

* packages/gnugo/gnugo.el (gnugo-toggle-abdication): ...here.

10 years ago[gnugo] On disable, transform in-flight user-move into suggestion.
Thien-Thi Nguyen [Tue, 22 Apr 2014 15:26:57 +0000 (17:26 +0200)]
[gnugo] On disable, transform in-flight user-move into suggestion.

* packages/gnugo/gnugo.el (gnugo-toggle-abdication):
Don't signal "too soon" error; instead, transform scheduled
user-move into a suggestion, include extra info in the
status message and sleep for 2 sec after message display;
update condition for ‘(gnugo-get-move gcolor)’ accordingly.

10 years ago[gnugo] Allow user to request suggestion for GNU Go.
Thien-Thi Nguyen [Tue, 22 Apr 2014 10:20:58 +0000 (12:20 +0200)]
[gnugo] Allow user to request suggestion for GNU Go.

* packages/gnugo/gnugo.el (gnugo-get-move-insertion-filter):
Include color in suggestion message.
(gnugo-request-suggestion): Use ‘gnugo-current-player’.

10 years ago[gnugo] Fix bug: DTRT for suggestion ‘nowarp’ check.
Thien-Thi Nguyen [Tue, 22 Apr 2014 10:14:58 +0000 (12:14 +0200)]
[gnugo] Fix bug: DTRT for suggestion ‘nowarp’ check.

From inception 2014-04-15, "New
command: ‘S’ (gnugo-request-suggestion)".

* packages/gnugo/gnugo.el (gnugo-get-move-insertion-filter):
Don't feed ‘cons’ rv to ‘destructuring-bind’; instead,
drop var ‘pos-or-pass’, repurpose var ‘full’ -- surely
succumbing to Bad Style :-/, and access :waiting directly.

10 years ago[gnugo int] Use ‘destructuring-bind’ more.
Thien-Thi Nguyen [Tue, 22 Apr 2014 09:45:50 +0000 (11:45 +0200)]
[gnugo int] Use ‘destructuring-bind’ more.

* packages/gnugo/gnugo.el (gnugo-gate): ...here,
for :waiting check, in the process making it player-agnostic.

10 years ago[gnugo] Allow user to move for GNU Go.
Thien-Thi Nguyen [Tue, 22 Apr 2014 09:39:07 +0000 (11:39 +0200)]
[gnugo] Allow user to move for GNU Go.

* packages/gnugo/gnugo.el (gnugo--user-play):
Don't hardcode WHO to ‘gnugo-push-move’;
instead, compute it from :last-mover.

10 years agoMerge branch 'master' of https://github.com/leoliu/easy-kill
Leo Liu [Tue, 22 Apr 2014 15:44:57 +0000 (23:44 +0800)]
Merge branch 'master' of https://github.com/leoliu/easy-kill

10 years agoFix copyright header for test.el
Leo Liu [Tue, 22 Apr 2014 15:36:46 +0000 (23:36 +0800)]
Fix copyright header for test.el

10 years agoFix prefix of last merge and restore deleted files
Leo Liu [Tue, 22 Apr 2014 08:36:30 +0000 (16:36 +0800)]
Fix prefix of last merge and restore deleted files

See discussion
http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00311.html

10 years agoMerge branch 'master' of https://github.com/leoliu/easy-kill
Leo Liu [Tue, 22 Apr 2014 00:29:10 +0000 (08:29 +0800)]
Merge branch 'master' of https://github.com/leoliu/easy-kill

10 years agoFix emacs-snapshot in travis-ci and use svg badge
Leo Liu [Mon, 21 Apr 2014 23:57:12 +0000 (07:57 +0800)]
Fix emacs-snapshot in travis-ci and use svg badge

Thanks to Sebastian Wiesner for these tips in
7a7e446c03a074547bf18e34fe38c346169a9da0

10 years ago[gnugo int] Move ‘gnugo-position’ call down-chain.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:35:53 +0000 (23:35 +0200)]
[gnugo int] Move ‘gnugo-position’ call down-chain.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
...into here if SPEC is neither number nor string.
(gnugo-oops, gnugo-fancy-undo): Update accordingly.

10 years ago[gnugo int] Centralize some "No stone at POS" errors.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:19:12 +0000 (23:19 +0200)]
[gnugo int] Centralize some "No stone at POS" errors.

* packages/gnugo/gnugo.el (gnugo--mem-with-played-stone):
Take optional arg NOERROR; if clear, when no ‘color’
found, signal "No stone at POS" error.
(gnugo--climb-towards-root): Drop "POS already clear" error
handling; use ‘gnugo--mem-with-played-stone’ rv directly.
(gnugo--node-with-played-stone): Take optional arg NOERROR;
pass it to ‘gnugo--mem-with-played-stone’.
(gnugo-describe-position): Specify
NOERROR to ‘gnugo--node-with-played-stone’.
(gnugo-comment): Drop "No stone at POS" error handling;
use ‘gnugo--node-with-played-stone’ rv directly.

10 years ago[gnugo int] Simplify towards-root loop termination check.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:05:39 +0000 (23:05 +0200)]
[gnugo int] Simplify towards-root loop termination check.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Don't construct local func ‘done’; instead, pre-compute
final MEM and loop until it's reached, as per ‘eq’.

10 years ago[gnugo] Internalize ‘gnugo-magic-undo’.
Thien-Thi Nguyen [Mon, 21 Apr 2014 20:43:45 +0000 (22:43 +0200)]
[gnugo] Internalize ‘gnugo-magic-undo’.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Rename from ‘gnugo-magic-undo’; delete docstring.
(gnugo-undo-one-move, gnugo-undo-two-moves, gnugo-oops)
(gnugo-fancy-undo): Use ‘gnugo--climb-towards-root’.
(:gnugo-gtp-command-spec undo)
(:gnugo-gtp-command-spec gg-undo): Likewise.

10 years ago[gnugo] Validate position arg of GTP commands ‘undo’, ‘gg-undo’.
Thien-Thi Nguyen [Mon, 21 Apr 2014 20:25:27 +0000 (22:25 +0200)]
[gnugo] Validate position arg of GTP commands ‘undo’, ‘gg-undo’.

* packages/gnugo/gnugo.el
(:gnugo-gtp-command-spec validpos): New internal func.
(:gnugo-gtp-command-spec undo)
(:gnugo-gtp-command-spec gg-undo): Use ‘validpos’.

10 years ago[gnugo int] Add abstraction: gnugo--mem-with-played-stone
Thien-Thi Nguyen [Mon, 21 Apr 2014 14:47:41 +0000 (16:47 +0200)]
[gnugo int] Add abstraction: gnugo--mem-with-played-stone

* packages/gnugo/gnugo.el (gnugo--mem-with-played-stone): New func.
(gnugo--node-with-played-stone): Use it; convert to defsubst.

10 years agoFix easy-kill-org-up-element
Leo Liu [Mon, 21 Apr 2014 14:22:52 +0000 (22:22 +0800)]
Fix easy-kill-org-up-element

10 years ago[gnugo int] Add abstraction: gnugo--q/ue
Thien-Thi Nguyen [Mon, 21 Apr 2014 12:04:04 +0000 (14:04 +0200)]
[gnugo int] Add abstraction: gnugo--q/ue

* packages/gnugo/gnugo.el (gnugo--q/ue): New func.
(gnugo-push-move, gnugo-read-sgf-file, gnugo-magic-undo): Use it.

10 years ago[gnugo] Reduce modifier key bouncing for "quick peek" frolics.
Thien-Thi Nguyen [Mon, 21 Apr 2014 11:43:44 +0000 (13:43 +0200)]
[gnugo] Reduce modifier key bouncing for "quick peek" frolics.

* packages/gnugo/gnugo.el
(gnugo-frolic-mode-map): Bind ‘C-q’ to ‘gnugo-frolic-quit’.
(gnugo-board-mode-map): Bind ‘C-c C-l’ to ‘gnugo-frolic-in-the-leaves’.

10 years ago[gnugo] Fix bug: DTRT for :last-user-bpos in undo-one-move ME-NEXT.
Thien-Thi Nguyen [Mon, 21 Apr 2014 11:33:51 +0000 (13:33 +0200)]
[gnugo] Fix bug: DTRT for :last-user-bpos in undo-one-move ME-NEXT.

Omission from 2014-03-11, "Make ‘C-u M-u’ switch roles".

* packages/gnugo/gnugo.el (gnugo-undo-one-move):
Swizzle colors before calling ‘gnugo-magic-undo’.

10 years agoSome tests and bug fixes for org
Leo Liu [Mon, 21 Apr 2014 09:37:05 +0000 (17:37 +0800)]
Some tests and bug fixes for org

10 years agoLocalize two global states using overlay properties
Leo Liu [Mon, 21 Apr 2014 05:06:50 +0000 (13:06 +0800)]
Localize two global states using overlay properties

1. replace variable easy-kill-mark with overlay property mark
2. replace variable easy-kill-append with overlay property append

10 years agoAdd tests and enable travis-ci
Leo Liu [Mon, 21 Apr 2014 03:31:08 +0000 (11:31 +0800)]
Add tests and enable travis-ci

10 years agoSupport Org mode with list-wise +/- and sexp selection
Leo Liu [Sun, 20 Apr 2014 23:59:28 +0000 (07:59 +0800)]
Support Org mode with list-wise +/- and sexp selection

Make easy-kill-thing-handler generic for dispatching.

10 years ago[gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:50:20 +0000 (17:50 +0200)]
[gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.

Omission from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo int] Fix bug: On -l/--infile, don't set :last-mover.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:47:51 +0000 (17:47 +0200)]
[gnugo int] Fix bug: On -l/--infile, don't set :last-mover.

Omission from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo] On SGF load, leave cursor at last user board position.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:00:24 +0000 (17:00 +0200)]
[gnugo] On SGF load, leave cursor at last user board position.

* packages/gnugo/gnugo.el (gnugo-move-history):
Take optional second arg COLOR.
(gnugo-move-history remem): New internal func.
(gnugo-move-history pretty): New internal func.
(gnugo-move-history next): Use ‘remem’, ‘pretty’.
(gnugo-move-history): If RSEL is ‘bpos’, return
the position of the last stone placed by COLOR.
(gnugo-read-sgf-file): Set :last-user-bpos.
(gnugo): After refresh, prefer :last-user-bpos
to :center-position for cursor position.