]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
10 years agoMerge commit '51c140ca9ee32d27cacc7b2b07d4539bf98ae575' from company-master
Dmitry Gutov [Sat, 19 Apr 2014 10:11:04 +0000 (14:11 +0400)]
Merge commit '51c140ca9ee32d27cacc7b2b07d4539bf98ae575' from company-master

Conflicts:
packages/company/company-pysmell.el

10 years agoRelease 0.8.0
Dmitry Gutov [Sat, 19 Apr 2014 10:05:27 +0000 (14:05 +0400)]
Release 0.8.0

10 years agoAlways include company-capf in the backends
Dmitry Gutov [Sat, 19 Apr 2014 01:02:37 +0000 (05:02 +0400)]
Always include company-capf in the backends

https://github.com/clojure-emacs/cider/issues/528#issuecomment-40800179
http://www.reddit.com/r/emacs/comments/22d7y6/autocomplete_or_companymode/cgma6qj
https://github.com/company-mode/company-mode/issues/95

10 years ago[gnugo] Decruft: Use ‘gnugo-program’ directly as executable.
Thien-Thi Nguyen [Thu, 17 Apr 2014 20:24:24 +0000 (22:24 +0200)]
[gnugo] Decruft: Use ‘gnugo-program’ directly as executable.

* packages/gnugo/gnugo.el (gnugo-program): Rewrite docstring.
(gnugo): Add ‘gnugo-program’ sanity check prior to buffer
switch; drop support for "PROGRAM OPTIONS..." value.

10 years ago[gnugo int] Decruft: Drop unused local var.
Thien-Thi Nguyen [Thu, 17 Apr 2014 16:40:22 +0000 (18:40 +0200)]
[gnugo int] Decruft: Drop unused local var.

From inception 2014-04-15, "New command:
‘C-c C-a’ (gnugo-toggle-abdication)".

* packages/gnugo/gnugo.el (gnugo-toggle-abdication):
Drop unused local var ‘ucolor’; also, don't bother
destructuring :waiting; instead, just check its truth value.

10 years ago[gnugo] Keep GNUGO Board buffer read-only.
Thien-Thi Nguyen [Thu, 17 Apr 2014 15:16:22 +0000 (17:16 +0200)]
[gnugo] Keep GNUGO Board buffer read-only.

* packages/gnugo/gnugo.el (gnugo-merge-showboard-results)
(gnugo-refresh): Dynamically set ‘inhibit-read-only’.
(gnugo-board-mode): Don't clear ‘buffer-read-only’.

10 years ago[gnugo int] Don't make ‘font-lock-defaults’ buffer-local.
Thien-Thi Nguyen [Thu, 17 Apr 2014 13:45:41 +0000 (15:45 +0200)]
[gnugo int] Don't make ‘font-lock-defaults’ buffer-local.

* packages/gnugo/gnugo.el (gnugo-board-mode):
...here, as it automatically becomes buffer-local when set.

10 years ago[gnugo] Use ‘define-derived-mode’ for GNUGO Board mode.
Thien-Thi Nguyen [Thu, 17 Apr 2014 13:15:02 +0000 (15:15 +0200)]
[gnugo] Use ‘define-derived-mode’ for GNUGO Board mode.

This exposes ‘gnugo-board-mode-hook’ to the vagaries
of Special mode (in particular ‘special-mode-hook’).

* packages/gnugo/gnugo.el (gnugo-board-mode):
...here, removing now-redundant stuff accordingly,
as well as ‘(put 'gnugo-board-mode 'mode-class 'special)’;
also, clear ‘buffer-read-only’.

10 years ago[gnugo int] Decruft: Streamline game-over handling on SGF load.
Thien-Thi Nguyen [Thu, 17 Apr 2014 09:47:45 +0000 (11:47 +0200)]
[gnugo int] Decruft: Streamline game-over handling on SGF load.

* packages/gnugo/gnugo.el (gnugo-read-sgf-file):
Don't bother w/ :game-over here; leave it to ‘gnugo-close-game’.

10 years ago[gnugo int] Consolidate display scaling factors access.
Thien-Thi Nguyen [Thu, 17 Apr 2014 08:48:32 +0000 (10:48 +0200)]
[gnugo int] Consolidate display scaling factors access.

* packages/gnugo/gnugo.el (gnugo-toggle-image-display):
Save image factors in :imul instead of in :w-imul, :h-imul;
conditionally assign them directly to :mul instead of :wmul,
:hmul, or otherwise reset to ‘(1 . 1)’.
(gnugo-refresh): Update accordingly.
(gnugo): Init :mul to ‘(1 . 1)’.

10 years ago[gnugo int] Consolidate paren overlays access.
Thien-Thi Nguyen [Thu, 17 Apr 2014 08:26:32 +0000 (10:26 +0200)]
[gnugo int] Consolidate paren overlays access.

* packages/gnugo/gnugo.el (gnugo-put): Update docstring.
(gnugo-refresh): Use ‘destructuring-bind’ for paren overlays.
(gnugo): Don't ‘gnugo-put’ overlays in :lparen-ov and
:rparen-ov; instead, cons them and stash the pair in :paren-ov.

10 years ago[gnugo int] Shave one ‘gnugo-other’ call.
Thien-Thi Nguyen [Thu, 17 Apr 2014 08:16:36 +0000 (10:16 +0200)]
[gnugo int] Shave one ‘gnugo-other’ call.

* packages/gnugo/gnugo.el (gnugo): ...here,
in the root-node init, by checking for "user plays black"
directly, and inverting the resulting :PB, :PW values.

10 years ago[gnugo] Move most of ‘gnugo-board-mode’ to ‘gnugo’.
Thien-Thi Nguyen [Wed, 16 Apr 2014 13:08:46 +0000 (15:08 +0200)]
[gnugo] Move most of ‘gnugo-board-mode’ to ‘gnugo’.

Although the buffer-local hash ‘gnugo-state’ is available
in ‘gnugo-board-mode’, it is empty.  This impacts mostly
funcs on ‘gnugo-board-mode-hook’ that use gnugo-{get,put}.

* packages/gnugo/gnugo.el (gnugo-board-mode):
Move buffer switching, options querying, process kicking,
a raft of ‘gnugo-put’ calls, and buffer refreshing from here...
(gnugo): ...to here; also, don't bother to ‘gnugo--forget’.

10 years ago[gnugo int] Remove from ‘gnugo-state’ instead of setting to nil.
Thien-Thi Nguyen [Wed, 16 Apr 2014 12:11:23 +0000 (14:11 +0200)]
[gnugo int] Remove from ‘gnugo-state’ instead of setting to nil.

* packages/gnugo/gnugo.el (gnugo--forget): New func.
(gnugo-sentinel, gnugo-toggle-image-display, gnugo--unclose-game)
(gnugo-get-move-insertion-filter, gnugo-toggle-abdication)
(gnugo-board-mode): Use it.
(:gnugo-gtp-command-spec boardsize :post-thunk)
(:gnugo-gtp-command-spec clear_board :post-thunk)
(:gnugo-gtp-command-spec fixed_handicap :post-thunk): Likewise.

10 years ago[gnugo] Add hook: gnugo-start-game-hook
Thien-Thi Nguyen [Wed, 16 Apr 2014 09:51:12 +0000 (11:51 +0200)]
[gnugo] Add hook: gnugo-start-game-hook

* packages/gnugo/gnugo.el (gnugo-start-game-hook): New var.
(gnugo): Run ‘gnugo-start-game-hook’.

10 years ago[gnugo] Add abstraction: gnugo-current-player
Thien-Thi Nguyen [Wed, 16 Apr 2014 09:48:18 +0000 (11:48 +0200)]
[gnugo] Add abstraction: gnugo-current-player

* packages/gnugo/gnugo.el (gnugo-current-player): New func.
(gnugo-refresh, gnugo-magic-undo, gnugo): Use it.

10 years ago[gnugo] Drop support for ‘(gnugo-move-history 'count)’.
Thien-Thi Nguyen [Wed, 16 Apr 2014 07:12:40 +0000 (09:12 +0200)]
[gnugo] Drop support for ‘(gnugo-move-history 'count)’.

* packages/gnugo/gnugo.el (gnugo-move-history): ...here.
(gnugo-refresh): For ‘~m’, access :sgf-gametree, :monkey directly.

10 years ago[gnugo int] Add abstraction: gnugo--plant-and-climb
Thien-Thi Nguyen [Wed, 16 Apr 2014 06:54:04 +0000 (08:54 +0200)]
[gnugo int] Add abstraction: gnugo--plant-and-climb

* packages/gnugo/gnugo.el (gnugo--plant-and-climb): New func.
(gnugo-read-sgf-file, gnugo-board-mode): Use it.

10 years ago[gnugo] Increase S/N for ‘C-u F’ comment.
Thien-Thi Nguyen [Wed, 16 Apr 2014 05:02:32 +0000 (07:02 +0200)]
[gnugo] Increase S/N for ‘C-u F’ comment.

* packages/gnugo/gnugo.el (gnugo-display-final-score):
Omit "The game is over.  " and lines w/ start/end time.

10 years ago[gnugo frolic] Type ‘Q’ to quit.
Thien-Thi Nguyen [Wed, 16 Apr 2014 04:06:40 +0000 (06:06 +0200)]
[gnugo frolic] Type ‘Q’ to quit.

* packages/gnugo/gnugo.el (gnugo-frolic-mode-map): Add binding for ‘Q’.

10 years ago[gnugo int] Commentary munging; nfc.
Thien-Thi Nguyen [Tue, 15 Apr 2014 19:32:21 +0000 (21:32 +0200)]
[gnugo int] Commentary munging; nfc.

10 years ago[gnugo int] Use ‘following-char’ more.
Thien-Thi Nguyen [Tue, 15 Apr 2014 19:19:13 +0000 (21:19 +0200)]
[gnugo int] Use ‘following-char’ more.

* packages/gnugo/gnugo.el (gnugo-mouse-move):
...here w/ ‘memq’, instead of ‘looking-at’.

10 years ago[gnugo int] Add abstraction: gnugo--user-play
Thien-Thi Nguyen [Tue, 15 Apr 2014 19:15:27 +0000 (21:15 +0200)]
[gnugo int] Add abstraction: gnugo--user-play

* packages/gnugo/gnugo.el (gnugo--user-play): New func.
(gnugo-move, gnugo-pass): Use ‘gnugo--user-play’.

10 years ago[gnugo] Mention ‘gnugo-frolic-mode-hook’.
Thien-Thi Nguyen [Tue, 15 Apr 2014 18:29:34 +0000 (20:29 +0200)]
[gnugo] Mention ‘gnugo-frolic-mode-hook’.

Omission from 2014-04-08, "Define "GNUGO Frolic" mode".

* packages/gnugo/gnugo.el [Commentary]: ...here.

10 years ago[gnugo int] Add abstraction: gnugo--gate-game-over
Thien-Thi Nguyen [Tue, 15 Apr 2014 18:26:15 +0000 (20:26 +0200)]
[gnugo int] Add abstraction: gnugo--gate-game-over

* packages/gnugo/gnugo.el (gnugo--gate-game-over): New defsubst.
(gnugo-gate, gnugo-toggle-abdication): Use it.

10 years ago[gnugo int] Add abstraction: gnugo--ERR-wait
Thien-Thi Nguyen [Tue, 15 Apr 2014 18:24:18 +0000 (20:24 +0200)]
[gnugo int] Add abstraction: gnugo--ERR-wait

* packages/gnugo/gnugo.el (gnugo--ERR-wait): New defun.
(gnugo-gate, gnugo-toggle-abdication): Use it.

10 years ago[gnugo] New command: ‘C-c C-a’ (gnugo-toggle-abdication)
Thien-Thi Nguyen [Tue, 15 Apr 2014 17:02:09 +0000 (19:02 +0200)]
[gnugo] New command: ‘C-c C-a’ (gnugo-toggle-abdication)

* packages/gnugo/gnugo.el (gnugo-refresh):
Include "Abd" in mode line if abdication enabled.
(gnugo-get-move-insertion-filter): If abdication enabled,
create and save a timer object to call ‘gnugo-get-move’
w/ the opposite of the current ‘color’.
(gnugo-toggle-abdication): New command.
(gnugo-board-mode-map): Add binding for ‘C-c C-a’.

10 years ago[gnugo int] Centralize some constant strings.
Thien-Thi Nguyen [Tue, 15 Apr 2014 10:36:38 +0000 (12:36 +0200)]
[gnugo int] Centralize some constant strings.

* packages/gnugo/gnugo.el (gnugo--rename-buffer-portion): Rewrite.
(gnugo-get-move-insertion-filter): Update call.
(gnugo-request-suggestion): Likewise.

10 years ago[gnugo int] Accept color for ‘gnugo-push-move’ 1st arg.
Thien-Thi Nguyen [Tue, 15 Apr 2014 10:27:03 +0000 (12:27 +0200)]
[gnugo int] Accept color for ‘gnugo-push-move’ 1st arg.

* packages/gnugo/gnugo.el (gnugo-push-move):
Rename first arg to WHO; if it is not a boolean, take it
as ‘color’ directly; update "effective userp" ref likewise.
(gnugo-get-move-insertion-filter):
Pass ‘color’ directly to ‘gnugo-push-move’.

10 years ago[gnugo] New command: ‘S’ (gnugo-request-suggestion)
Thien-Thi Nguyen [Tue, 15 Apr 2014 08:57:07 +0000 (10:57 +0200)]
[gnugo] New command: ‘S’ (gnugo-request-suggestion)

* packages/gnugo/gnugo.el (gnugo-gate):
If waiting for a suggestion, say "Still thinking"
instead of "Not your turn yet" in error message.
(gnugo--q): If waiting for a suggestion, say
"receive a suggestion" instead of "play" in error message.
(gnugo--rename-buffer-portion): New func.
(gnugo-get-move-insertion-filter): On received suggestion,
rename buffer w/ "to play", warp the cursor unless nonsensical
or inhibited, and display the suggestion in the echo area.
(gnugo-get-move): Take optional arg SUGGESTION;
save it as well as color in :waiting.
(gnugo-request-suggestion): New command.
(gnugo-board-mode-map): Add binding for ‘S’.

10 years ago[gnugo int] Add abstraction: gnugo--finish-move
Thien-Thi Nguyen [Tue, 15 Apr 2014 07:24:13 +0000 (09:24 +0200)]
[gnugo int] Add abstraction: gnugo--finish-move

* packages/gnugo/gnugo.el (gnugo--finish-move): New func.
(gnugo-get-move-insertion-filter, gnugo-move, gnugo-pass): Use it.

10 years ago[gnugo] Drop var: gnugo-inhibit-refresh
Thien-Thi Nguyen [Tue, 15 Apr 2014 05:44:04 +0000 (07:44 +0200)]
[gnugo] Drop var: gnugo-inhibit-refresh

* packages/gnugo/gnugo.el (gnugo-inhibit-refresh): Delete.
(gnugo-post-move-hook): Update docstring.
(gnugo-get-move-insertion-filter)
(gnugo-move, gnugo-pass): Update.

10 years ago[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Mon, 14 Apr 2014 19:30:01 +0000 (21:30 +0200)]
[gnugo maint] Update HACKING; nfc.

10 years ago[gnugo frolic] Display "!" for comment; add as ‘help-echo’.
Thien-Thi Nguyen [Mon, 14 Apr 2014 14:14:00 +0000 (16:14 +0200)]
[gnugo frolic] Display "!" for comment; add as ‘help-echo’.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves): ...here.

10 years ago[gnugo] Make ‘C-u F’ add the blurb as a comment to the last node.
Thien-Thi Nguyen [Mon, 14 Apr 2014 13:36:33 +0000 (15:36 +0200)]
[gnugo] Make ‘C-u F’ add the blurb as a comment to the last node.

* packages/gnugo/gnugo.el (gnugo-display-final-score):
...here, if new prefix arg COMMENT is set, with "territory",
"captures", "komi" squashed to "T", "C", "K", respectively.

10 years ago[gnugo] New command: ‘C’ (gnugo-comment)
Thien-Thi Nguyen [Mon, 14 Apr 2014 13:05:10 +0000 (15:05 +0200)]
[gnugo] New command: ‘C’ (gnugo-comment)

* packages/gnugo/gnugo.el (gnugo-comment): New command.
(gnugo-board-mode-map): Add binding for ‘C’.

10 years ago[gnugo int] Add abstraction: gnugo--node-with-played-stone
Thien-Thi Nguyen [Mon, 14 Apr 2014 12:29:19 +0000 (14:29 +0200)]
[gnugo int] Add abstraction: gnugo--node-with-played-stone

* packages/gnugo/gnugo.el (gnugo--node-with-played-stone): New func.
(gnugo-describe-position): Use ‘gnugo--node-with-played-stone’.

10 years ago`company-other-backend': don't use `company-manual-begin'
Dmitry Gutov [Mon, 14 Apr 2014 12:12:11 +0000 (16:12 +0400)]
`company-other-backend': don't use `company-manual-begin'

Don't stop when the first applicable backend returns no candidates.

#53
#90

10 years ago[gnugo int] Incorporate *-play-stone into ‘gnugo-push-move’.
Thien-Thi Nguyen [Mon, 14 Apr 2014 08:51:00 +0000 (10:51 +0200)]
[gnugo int] Incorporate *-play-stone into ‘gnugo-push-move’.

U (X) ≡ "Don't call X".
* packages/gnugo/gnugo.el (gnugo--play-stone): Delete func.
(gnugo--user-play-stone): Delete defsubst.
(gnugo-push-move): Do GTP "play COLOR MOVE" here.
(gnugo-get-move-insertion-filter): U (gnugo--play-stone);
make USERP arg to ‘gnugo-push-move’ depend on :waiting color.
(gnugo-move, gnugo-pass): U (gnugo--user-play-stone).
(gnugo-okay): U (gnugo--play-stone); decruft local vars.
(gnugo-display-final-score): U (gnugo--play-stone).

10 years ago[gnugo] Fix bug: Keep subproc informed of forced PASS.
Thien-Thi Nguyen [Mon, 14 Apr 2014 08:28:03 +0000 (10:28 +0200)]
[gnugo] Fix bug: Keep subproc informed of forced PASS.

* packages/gnugo/gnugo.el (gnugo-display-final-score):
For forced PASS moves, call ‘gnugo--play-stone’, too.

10 years ago[gnugo int] Use GTP ‘reg_genmove’ instead of ‘genmove’.
Thien-Thi Nguyen [Mon, 14 Apr 2014 08:03:53 +0000 (10:03 +0200)]
[gnugo int] Use GTP ‘reg_genmove’ instead of ‘genmove’.

* packages/gnugo/gnugo.el (gnugo-get-move): ...here.
(gnugo-get-move-insertion-filter): Extract COLOR
from :waiting; call ‘gnugo--play-stone’ with it.

10 years ago[gnugo int] Rename :waitingp to :waiting; save color there.
Thien-Thi Nguyen [Mon, 14 Apr 2014 07:49:17 +0000 (09:49 +0200)]
[gnugo int] Rename :waitingp to :waiting; save color there.

* packages/gnugo/gnugo.el (gnugo-board-buffer-p)
(gnugo-get-move-insertion-filter, gnugo-display-final-score)
(gnugo-gate, gnugo--q, gnugo-refresh, gnugo-board-mode): Update.
(gnugo-get-move): Save COLOR in :waiting.

10 years ago[gnugo] Dropped command: ‘t’ (gnugo-toggle-dead-group)
Thien-Thi Nguyen [Mon, 14 Apr 2014 07:13:59 +0000 (09:13 +0200)]
[gnugo] Dropped command: ‘t’ (gnugo-toggle-dead-group)

This was incomplete and not very useful.

* packages/gnugo/gnugo.el (gnugo-toggle-dead-group): Delete command.
(gnugo-board-mode-map): Don't bind ‘t’.

10 years agoIntroduce company-clang-insert-arguments
Dmitry Gutov [Mon, 14 Apr 2014 01:09:43 +0000 (05:09 +0400)]
Introduce company-clang-insert-arguments

Closes #102

10 years ago[gnugo int] Incorporate ‘gnugo-note’ into unique caller.
Thien-Thi Nguyen [Sun, 13 Apr 2014 16:17:19 +0000 (18:17 +0200)]
[gnugo int] Incorporate ‘gnugo-note’ into unique caller.

* packages/gnugo/gnugo.el
(gnugo-note): Move...
(gnugo-push-move): ...into here.

10 years ago[gnugo int] Use ‘gnugo--decorate’ more.
Thien-Thi Nguyen [Sun, 13 Apr 2014 12:31:13 +0000 (14:31 +0200)]
[gnugo int] Use ‘gnugo--decorate’ more.

* packages/gnugo/gnugo.el (gnugo-board-mode): ...here.

10 years ago[gnugo int] Add abstraction: gnugo--decorate
Thien-Thi Nguyen [Sun, 13 Apr 2014 11:42:55 +0000 (13:42 +0200)]
[gnugo int] Add abstraction: gnugo--decorate

* packages/gnugo/gnugo.el (gnugo--decorate): New defsubst.
(gnugo-note): Use ‘gnugo--decorate’.

10 years ago[gnugo] Include root node in :sgf-gametree description.
Thien-Thi Nguyen [Sun, 13 Apr 2014 10:13:55 +0000 (12:13 +0200)]
[gnugo] Include root node in :sgf-gametree description.

* packages/gnugo/gnugo.el (gnugo--root-node): Move earlier in file.
(gnugo-describe-internal-properties): ...here.

10 years ago[gnugo int] Add abstraction: gnugo--count-query
Thien-Thi Nguyen [Sun, 13 Apr 2014 09:15:39 +0000 (11:15 +0200)]
[gnugo int] Add abstraction: gnugo--count-query

* packages/gnugo/gnugo.el (gnugo--count-query): New defsubst.
(gnugo-estimate-score, gnugo-display-final-score): Use it.

10 years ago[gnugo int] Add abstractions: gnugo--{user-}play-stone
Thien-Thi Nguyen [Sun, 13 Apr 2014 08:52:55 +0000 (10:52 +0200)]
[gnugo int] Add abstractions: gnugo--{user-}play-stone

* packages/gnugo/gnugo.el (gnugo--play-stone): New func.
(gnugo--user-play-stone): New defsubst.
(gnugo-move, gnugo-pass): Use ‘gnugo--user-play-stone’.
(gnugo-toggle-dead-group, gnugo-okay): Use ‘gnugo--play-stone’.

10 years ago[gnugo int] Make ‘gnugo-gate’ slightly faster.
Thien-Thi Nguyen [Sun, 13 Apr 2014 08:36:39 +0000 (10:36 +0200)]
[gnugo int] Make ‘gnugo-gate’ slightly faster.

* packages/gnugo/gnugo.el (gnugo-gate):
Check IN-PROGRESS-P before :game-over.

10 years agoMerge branch 'master' of https://github.com/leoliu/easy-kill
Leo Liu [Sun, 13 Apr 2014 07:31:07 +0000 (15:31 +0800)]
Merge branch 'master' of https://github.com/leoliu/easy-kill

10 years agoFix #11: Work around http://debbugs.gnu.org/17247
Leo Liu [Sun, 13 Apr 2014 03:42:51 +0000 (11:42 +0800)]
Fix #11: Work around http://debbugs.gnu.org/17247

10 years agoFix thinko in last change
Leo Liu [Sun, 13 Apr 2014 02:30:12 +0000 (10:30 +0800)]
Fix thinko in last change

Note only the describe-PROP can be a function object.

10 years agoFix #12: don't silenty change to `list' when +/- on `sexp'
Leo Liu [Sun, 13 Apr 2014 02:06:27 +0000 (10:06 +0800)]
Fix #12: don't silenty change to `list' when +/- on `sexp'

10 years ago[gnugo] New command: ‘O’ (gnugo-okay)
Thien-Thi Nguyen [Sat, 12 Apr 2014 17:30:48 +0000 (19:30 +0200)]
[gnugo] New command: ‘O’ (gnugo-okay)

* packages/gnugo/gnugo.el (gnugo-okay): New command.
(gnugo-board-mode-map): Add binding for ‘O’.

10 years agofixup! [gnugo frolic] Add previous/next move navigation commands.
Thien-Thi Nguyen [Sat, 12 Apr 2014 16:54:36 +0000 (18:54 +0200)]
fixup! [gnugo frolic] Add previous/next move navigation commands.

10 years ago[gnugo frolic] Add previous/next move navigation commands.
Thien-Thi Nguyen [Sat, 12 Apr 2014 15:45:40 +0000 (17:45 +0200)]
[gnugo frolic] Add previous/next move navigation commands.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves fsi):
Take first arg PROPERTIES, pushing other args later;
use them to ‘propertize’ the formatted string.
(gnugo-frolic-in-the-leaves): Propertize "move" lines
w/ property ‘n’, column text additionally w/ property ‘bx’.
(gnugo--vertical): New func.
(gnugo-frolic-previous-move): New command.
(gnugo-frolic-next-move): Likewise.
(gnugo-frolic-mode-map): Add bindings for ‘C-p’, ‘C-n’.

10 years ago[gnugo int] Move :SZ access into ‘gnugo--as-pos-func’.
Thien-Thi Nguyen [Sat, 12 Apr 2014 10:35:29 +0000 (12:35 +0200)]
[gnugo int] Move :SZ access into ‘gnugo--as-pos-func’.

* packages/gnugo/gnugo.el (gnugo--as-pos-func):
Don't take arg ‘size’; instead, do ‘(gnugo-get :SZ)’ internally.
(gnugo-move-history): Update call to ‘gnugo--as-pos-func’.
(gnugo-frolic-in-the-leaves): Likewise.

10 years agoFix last change for the case of no thing at point
Leo Liu [Sat, 12 Apr 2014 10:14:16 +0000 (18:14 +0800)]
Fix last change for the case of no thing at point

10 years ago[gnugo] Make ‘=’ also display move number.
Thien-Thi Nguyen [Sat, 12 Apr 2014 10:31:47 +0000 (12:31 +0200)]
[gnugo] Make ‘=’ also display move number.

* packages/gnugo/gnugo.el (gnugo-describe-position):
If there a stone at that position, also display its move number.

10 years ago[gnugo int] Add abstraction: gnugo--as-cc-func
Thien-Thi Nguyen [Sat, 12 Apr 2014 10:17:40 +0000 (12:17 +0200)]
[gnugo int] Add abstraction: gnugo--as-cc-func

* packages/gnugo/gnugo.el (gnugo--as-cc-func): New func.
(gnugo-note): Use ‘gnugo--as-cc-func’.

10 years ago[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Sat, 12 Apr 2014 09:34:19 +0000 (11:34 +0200)]
[gnugo maint] Update HACKING; nfc.

The debugging aids functionality is now part of gnugo.el.

The various ideas / wishlist items are now realized, except for
"dribble the SGF tree", which is bunk, and "SGF tree traversal",
which awaits a nicer (user-level) node-ref facility.

10 years ago[gnugo int] Use ‘ignore’ to avoid byte-compiler warnings.
Thien-Thi Nguyen [Sat, 12 Apr 2014 09:27:34 +0000 (11:27 +0200)]
[gnugo int] Use ‘ignore’ to avoid byte-compiler warnings.

* packages/gnugo/gnugo.el (gnugo-frolic-prune-branch)
(:gnugo-gtp-command-spec final_score): ...here.

10 years agoImplement #10: allow `-' to move before first selection
Leo Liu [Sat, 12 Apr 2014 08:58:42 +0000 (16:58 +0800)]
Implement #10: allow `-' to move before first selection

10 years ago[gnugo frolic int] Add var selection to awakening parameterization.
Thien-Thi Nguyen [Sat, 12 Apr 2014 08:50:25 +0000 (10:50 +0200)]
[gnugo frolic int] Add var selection to awakening parameterization.

This eliminates unused local vars for the affected funcs.

* packages/gnugo/gnugo.el (gnugo--awake):
Check HOW for ‘(omit NAME ...)’ and arrange to omit NAME...
from the return value; return a simple list, w/o ‘values’.
(gnugo--awakened): Use ‘destructuring-bind’ instead of
‘multiple-value-bind’; construct its ARGS parameter
based on ‘(omit NAME ...)’ in HOW.
(gnugo--swiz): Omit ‘tree’.
(gnugo--sideways): Omit ‘tree’, ‘ends’, ‘monkey’, ‘bidx’, ‘line’.

10 years ago[gnugo frolic int] Add abstraction: gnugo--sideways
Thien-Thi Nguyen [Sat, 12 Apr 2014 08:37:55 +0000 (10:37 +0200)]
[gnugo frolic int] Add abstraction: gnugo--sideways

* packages/gnugo/gnugo.el (gnugo--sideways): New func.
(gnugo-frolic-backward-branch, gnugo-frolic-forward-branch): Use it.

10 years ago[gnugo int] Decruft: Delete unused local vars.
Thien-Thi Nguyen [Fri, 11 Apr 2014 10:14:05 +0000 (12:14 +0200)]
[gnugo int] Decruft: Delete unused local vars.

U (V, ...) ≡ "Delete local var V, ...".
* packages/gnugo/gnugo.el
(gnugo-move-history): U (col).
(gnugo-frolic-in-the-leaves): U (node, count).

10 years ago[gnugo int] Fix syntax error in ‘loop’ destructuring.
Thien-Thi Nguyen [Fri, 11 Apr 2014 10:00:26 +0000 (12:00 +0200)]
[gnugo int] Fix syntax error in ‘loop’ destructuring.

The destructuring is similar to but not identical to the
facility provided by ‘defmacro’ (info "(cl) For Clauses").
This was caught, btw, while trying to byte-compile w/
‘-*- lexical-binding: t -*-’ on the first line.

* packages/gnugo/gnugo.el (gnugo-board-mode):
Omit ‘&optional’ from ‘for’ clause variable destructuring form.

10 years agoMerge branch 'master' of github.com:leoliu/ggtags
Leo Liu [Sat, 12 Apr 2014 08:10:30 +0000 (16:10 +0800)]
Merge branch 'master' of github.com:leoliu/ggtags

10 years agoDoc and comment fix
Leo Liu [Sat, 12 Apr 2014 08:04:59 +0000 (16:04 +0800)]
Doc and comment fix

10 years agoMake js2 dependency optional
Leo Liu [Sat, 12 Apr 2014 04:35:47 +0000 (12:35 +0800)]
Make js2 dependency optional

10 years agoNew function easy-kill-thing-handler for mode-based dispatch
Leo Liu [Sat, 12 Apr 2014 02:12:06 +0000 (10:12 +0800)]
New function easy-kill-thing-handler for mode-based dispatch

New helper easy-kill-fboundp.

10 years ago[gnugo int] Decruft: Drop gametree IR element: KIDS
Thien-Thi Nguyen [Fri, 11 Apr 2014 09:28:48 +0000 (11:28 +0200)]
[gnugo int] Decruft: Drop gametree IR element: KIDS

* packages/gnugo/gnugo.el (gnugo-describe-internal-properties): Update.
(gnugo/sgf-create TREE): Don't take 3rd arg KIDS;
don't do multiple-kids detection / stashing.
(gnugo/sgf-create): Omit KIDS from rv.

10 years ago[gnugo int] Reorder gametree IR: ENDS, MNUM, ROOT, KIDS.
Thien-Thi Nguyen [Fri, 11 Apr 2014 09:21:54 +0000 (11:21 +0200)]
[gnugo int] Reorder gametree IR: ENDS, MNUM, ROOT, KIDS.

* packages/gnugo/gnugo.el (gnugo--tree-mnum)
(gnugo--tree-ends, gnugo--set-tree-ends)
(gnugo-describe-internal-properties, gnugo--root-node)
(gnugo/sgf-create): ...here.

10 years ago[gnugo sgf int] Internalize ‘gnugo/sgf-hang-from-root’.
Thien-Thi Nguyen [Fri, 11 Apr 2014 08:37:12 +0000 (10:37 +0200)]
[gnugo sgf int] Internalize ‘gnugo/sgf-hang-from-root’.

* packages/gnugo/gnugo.el (gnugo/sgf-write-file):
...into here, and remove ‘gnugo/sgf-hang-from-root’.

10 years ago[gnugo sgf int] Consolidate loops.
Thien-Thi Nguyen [Fri, 11 Apr 2014 08:25:12 +0000 (10:25 +0200)]
[gnugo sgf int] Consolidate loops.

* packages/gnugo/gnugo.el (gnugo/sgf-write-file):
...here, for "taking responsibility" and "write it out".

10 years agoNew format of easy-kill-alist to support append separator
Leo Liu [Fri, 11 Apr 2014 05:28:15 +0000 (13:28 +0800)]
New format of easy-kill-alist to support append separator

10 years agoShow tooltip describing kill candidate and echo js2 node
Leo Liu [Fri, 11 Apr 2014 03:08:07 +0000 (11:08 +0800)]
Show tooltip describing kill candidate and echo js2 node

10 years agoNew function easy-kill-interprogram-cut
Leo Liu [Fri, 11 Apr 2014 01:00:01 +0000 (09:00 +0800)]
New function easy-kill-interprogram-cut

10 years ago[gnugo sgf] Fix bug: Add ‘\’-escapes on write.
Thien-Thi Nguyen [Thu, 10 Apr 2014 13:51:30 +0000 (15:51 +0200)]
[gnugo sgf] Fix bug: Add ‘\’-escapes on write.

* packages/gnugo/gnugo.el (gnugo/sgf-write-file esc):
New internal func.
(gnugo/sgf-write-file >>one)
(gnugo/sgf-write-file >>two): Use ‘esc’.

10 years ago[gnugo sgf] Fix bug: Preserve whitespace for ‘text’ values.
Thien-Thi Nguyen [Thu, 10 Apr 2014 10:22:54 +0000 (12:22 +0200)]
[gnugo sgf] Fix bug: Preserve whitespace for ‘text’ values.

* packages/gnugo/gnugo.el (gnugo/sgf-create x):
Take arg PRESERVE-WHITESPACE; when set, don't squeeze whitespace.
(gnugo/sgf-create one): Specify PRESERVE-WHITESPACE
to ‘x’ when ‘type’ is ‘text’.

10 years ago[gnugo int] Whitespace munging; nfc.
Thien-Thi Nguyen [Thu, 10 Apr 2014 10:19:49 +0000 (12:19 +0200)]
[gnugo int] Whitespace munging; nfc.

10 years ago[gnugo int] Fix bug: Update local var ‘ends’ when branching.
Thien-Thi Nguyen [Thu, 10 Apr 2014 09:46:41 +0000 (11:46 +0200)]
[gnugo int] Fix bug: Update local var ‘ends’ when branching.

Omission from 2014-04-05, "Expand gametree IR: MNUM, KIDS, ROOT".
Note the unheeded hint: "hmm, probably unnecessary" -- d'oh!

* packages/gnugo/gnugo.el (gnugo--set-tree-ends): Return the new ends.
(gnugo-note): Update local var ‘ends’ w/ ‘gnugo--set-tree-ends’ rv.

10 years ago[gnugo int] Move vectorization into ‘gnugo--set-tree-ends’.
Thien-Thi Nguyen [Thu, 10 Apr 2014 05:48:44 +0000 (07:48 +0200)]
[gnugo int] Move vectorization into ‘gnugo--set-tree-ends’.

* packages/gnugo/gnugo.el (gnugo--set-tree-ends):
Rename 2nd arg to LS; apply ‘vector’ to it to obtain ENDS.
(gnugo-frolic-prune-branch, gnugo-note): Update accordingly.

10 years ago[gnugo frolic int] Don't bother to awake w/ ‘col’.
Thien-Thi Nguyen [Thu, 10 Apr 2014 05:41:41 +0000 (07:41 +0200)]
[gnugo frolic int] Don't bother to awake w/ ‘col’.

* packages/gnugo/gnugo.el (gnugo--awake): Don't return ‘col’.
(gnugo--awakened): Don't consume/bind ‘col’.

10 years ago[gnugo frolic int] Parameterize, centralize awakening.
Thien-Thi Nguyen [Thu, 10 Apr 2014 05:28:18 +0000 (07:28 +0200)]
[gnugo frolic int] Parameterize, centralize awakening.

* packages/gnugo/gnugo.el (gnugo--awake):
Take arg HOW, a list of forms; vary ‘line’ extraction using HOW;
likewise, conditionally throw "No branch here" user-error.
(gnugo--awakened): Add ‘declare’ form for indentation;
take first arg HOW; pass it quoted to ‘gnugo--awake’.
(gnugo--swiz, gnugo-frolic-prune-branch)
(gnugo-frolic-backward-branch, gnugo-frolic-forward-branch):
Update ‘gnugo--awakened’ call; drop centralized code.

10 years agoProvide a universal accessor easy-kill-get and use it
Leo Liu [Thu, 10 Apr 2014 04:01:29 +0000 (12:01 +0800)]
Provide a universal accessor easy-kill-get and use it

10 years ago[gnugo frolic] Doc fix.
Thien-Thi Nguyen [Thu, 10 Apr 2014 04:46:35 +0000 (06:46 +0200)]
[gnugo frolic] Doc fix.

* packages/gnugo/gnugo.el (gnugo-frolic-mode):
Don't limit to "viewing"; don't mention View minor mode.

10 years agoFix the test breakage (probably)
Dmitry Gutov [Wed, 9 Apr 2014 16:38:03 +0000 (20:38 +0400)]
Fix the test breakage (probably)

#101

10 years agoMerge pull request #101 from bbatsov/master
Dmitry Gutov [Wed, 9 Apr 2014 15:42:02 +0000 (19:42 +0400)]
Merge pull request #101 from bbatsov/master

Use cl-lib

10 years agoUse cl-lib
Bozhidar Batsov [Wed, 9 Apr 2014 15:25:01 +0000 (18:25 +0300)]
Use cl-lib

10 years agoTry to use the more up-to-date snapshot packages
Dmitry Gutov [Wed, 9 Apr 2014 14:00:18 +0000 (18:00 +0400)]
Try to use the more up-to-date snapshot packages

#99

10 years ago[gnugo frolic] Set ‘truncate-lines’.
Thien-Thi Nguyen [Wed, 9 Apr 2014 12:19:07 +0000 (14:19 +0200)]
[gnugo frolic] Set ‘truncate-lines’.

* packages/gnugo/gnugo.el (gnugo-frolic-mode): ...here.

10 years ago[gnugo frolic] Sync column headers w/ buffer text; handle offsets.
Thien-Thi Nguyen [Wed, 9 Apr 2014 12:17:59 +0000 (14:17 +0200)]
[gnugo frolic] Sync column headers w/ buffer text; handle offsets.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves):
For ‘header-line-format’, replace constant string
with ‘(:eval ...)’ form that handles left scroll bar,
left fringe, and horizontal scrolling margin, if any.

10 years agoMerge pull request #100 from bbatsov/version-fix
Dmitry Gutov [Wed, 9 Apr 2014 09:28:10 +0000 (13:28 +0400)]
Merge pull request #100 from bbatsov/version-fix

Make version string compatible with Emacs < 24.4

10 years agoMake version string compatible with Emacs < 24.4
Bozhidar Batsov [Wed, 9 Apr 2014 09:17:54 +0000 (12:17 +0300)]
Make version string compatible with Emacs < 24.4

`version-to-list` doesn't have snapshot support before 24.4. The `-cvs` suffix
is the closest we can get there and it will be interpreted as a snapshot version
on 24.4+ anyways.

10 years ago[gnugo frolic int] Regularize keymap decl + init.
Thien-Thi Nguyen [Wed, 9 Apr 2014 07:19:27 +0000 (09:19 +0200)]
[gnugo frolic int] Regularize keymap decl + init.

* packages/gnugo/gnugo.el (gnugo-frolic-mode-map): New defvar.
<top-level>: Conditionalize ‘gnugo-frolic-mode-map’
init; use same idiom as for ‘gnugo-board-mode-map’.

10 years ago[gnugo int] Fix syntax error.
Thien-Thi Nguyen [Wed, 9 Apr 2014 07:14:55 +0000 (09:14 +0200)]
[gnugo int] Fix syntax error.

Wishful Scheme thinking, not enough caffeine drinking...

* packages/gnugo/gnugo.el (gnugo--move-to-bcol): ...here.

10 years ago[gnugo int] Add abstraction: gnugo--move-to-bcol
Thien-Thi Nguyen [Wed, 9 Apr 2014 06:46:45 +0000 (08:46 +0200)]
[gnugo int] Add abstraction: gnugo--move-to-bcol

* packages/gnugo/gnugo.el (gnugo--move-to-bcol): New defsubst.
(gnugo--swiz, gnugo-frolic-prune-branch)
(gnugo-frolic-backward-branch)
(gnugo-frolic-forward-branch): Use it.