]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
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 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 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.

10 years agoRefactor and show type of match in mode-line
Leo Liu [Wed, 9 Apr 2014 05:26:43 +0000 (13:26 +0800)]
Refactor and show type of match in mode-line

10 years ago[gnugo int] Fix bug: Unbreak SGF file output.
Thien-Thi Nguyen [Wed, 9 Apr 2014 05:42:18 +0000 (07:42 +0200)]
[gnugo int] Fix bug: Unbreak SGF file output.

Omission from / regression introduced 2014-04-05,
"Expand gametree IR: MNUM, KIDS, ROOT", sigh.

* packages/gnugo/gnugo.el (gnugo/sgf-hang-from-root):
Use ‘gnugo--tree-ends’.

10 years ago[gnugo frolic int] Don't go through ‘gnugo-frolic-quit’ for refresh.
Thien-Thi Nguyen [Wed, 9 Apr 2014 05:24:48 +0000 (07:24 +0200)]
[gnugo frolic int] Don't go through ‘gnugo-frolic-quit’ for refresh.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves):
If ‘gnugo-frolic-parent-buffer’ is already set, don't clobber it.
(gnugo--swiz): Don't call ‘gnugo-frolic-quit’.
(gnugo-frolic-prune-branch): Likewise.

10 years ago[gnugo frolic int] Use ‘move-to-column’ more.
Thien-Thi Nguyen [Wed, 9 Apr 2014 05:14:46 +0000 (07:14 +0200)]
[gnugo frolic int] Use ‘move-to-column’ more.

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

10 years ago[gnugo frolic int] Assign ‘pop’ rv to avoid byte-compiler warning.
Thien-Thi Nguyen [Wed, 9 Apr 2014 05:03:40 +0000 (07:03 +0200)]
[gnugo frolic int] Assign ‘pop’ rv to avoid byte-compiler warning.

* packages/gnugo/gnugo.el (gnugo-frolic-prune-branch):
...here; also, let ‘pop’ handle ‘(zerop a)’ case internally.

10 years ago[gnugo frolic] Handle invalid branch more consistently.
Thien-Thi Nguyen [Wed, 9 Apr 2014 04:41:17 +0000 (06:41 +0200)]
[gnugo frolic] Handle invalid branch more consistently.

* packages/gnugo/gnugo.el (gnugo--awake):
If ‘col’ is too big or too small, return nil for ‘a’.
(gnugo--swiz, gnugo-frolic-prune-branch):
Throw error on invalid branch.
(gnugo-frolic-backward-branch): Take invalid branch as ‘width’.
(gnugo-frolic-forward-branch): Take invalid branch as -1.

10 years ago[gnugo frolic] Add command to prune a branch.
Thien-Thi Nguyen [Tue, 8 Apr 2014 15:04:58 +0000 (17:04 +0200)]
[gnugo frolic] Add command to prune a branch.

* packages/gnugo/gnugo.el (gnugo-frolic-prune-branch): New command.
(gnugo-frolic-mode-map): Bind ‘C-M-p’ to it.

10 years ago[gnugo frolic] Add command to set the main line.
Thien-Thi Nguyen [Tue, 8 Apr 2014 13:41:55 +0000 (15:41 +0200)]
[gnugo frolic] Add command to set the main line.

* packages/gnugo/gnugo.el (gnugo--swiz): Rename arg SHIFT to BLUNT;
if BLUNT is a number, validate and take it as ‘b’ directly.
(gnugo-frolic-set-as-main-line): New command.
(gnugo-frolic-mode-map): Bind ‘C-m’ to it.

10 years ago[gnugo frolic] Add backward/forward branch navigation commands.
Thien-Thi Nguyen [Tue, 8 Apr 2014 10:39:00 +0000 (12:39 +0200)]
[gnugo frolic] Add backward/forward branch navigation commands.

* packages/gnugo/gnugo.el (gnugo-frolic-backward-branch)
(gnugo-frolic-forward-branch): New commands.
(gnugo-frolic-mode-map): Add bindings for ‘C-b’, ‘C-f’.

10 years ago[gnugo frolic] Add some branch swizzling commands.
Thien-Thi Nguyen [Tue, 8 Apr 2014 10:25:46 +0000 (12:25 +0200)]
[gnugo frolic] Add some branch swizzling commands.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves):
Set buffer-local ‘gnugo-state’ to that of the parent buffer.
(gnugo--awake): New func.
(gnugo--awakened): New macro.
(gnguo--swiz): New func.
(gnugo-frolic-exchange-left, gnugo-frolic-rotate-left)
(gnugo-frolic-exchange-right, gnugo-frolic-rotate-right):
New commands.
(gnugo-frolic-mode-map): Add bindings for ‘j’, ‘J’, ‘k’, ‘K’.

10 years ago[gnugo int] Make ‘gnugo-board-buffer-p’ precise.
Thien-Thi Nguyen [Tue, 8 Apr 2014 07:53:36 +0000 (09:53 +0200)]
[gnugo int] Make ‘gnugo-board-buffer-p’ precise.

* packages/gnugo/gnugo.el (gnugo-board-buffer-p):
Check ‘major-mode’ directly; use ‘buffer-local-value’.

10 years ago[gnugo] Add some navigation commands for GNUGO Frolic mode.
Thien-Thi Nguyen [Tue, 8 Apr 2014 07:42:12 +0000 (09:42 +0200)]
[gnugo] Add some navigation commands for GNUGO Frolic mode.

* packages/gnugo/gnugo.el (gnugo-frolic-parent-buffer)
(gnugo-frolic-origin): New defvars.
(gnugo-frolic-mode): Don't invoke ‘view-mode’.
(gnugo-frolic-quit, gnugo-frolic-return-to-origin): New commands.
(gnugo-frolic-in-the-leaves): Set as local vars
‘gnugo-frolic-in-the-leaves’, ‘gnugo-frolic-origin’;
use ‘gnugo-frolic-return-to-origin’.
(gnugo-frolic-mode-map): Add bindings for ‘q’, ‘C’, ‘o’.

10 years ago[gnugo] Define "GNUGO Frolic" mode.
Thien-Thi Nguyen [Tue, 8 Apr 2014 06:33:51 +0000 (08:33 +0200)]
[gnugo] Define "GNUGO Frolic" mode.

* packages/gnugo/gnugo.el (gnugo-frolic-mode):
New command, via ‘define-derived-mode’.
(gnugo-frolic-in-the-leaves): Use it.

10 years agoImprove README.rst to include some use examples
Leo Liu [Mon, 7 Apr 2014 14:00:15 +0000 (22:00 +0800)]
Improve README.rst to include some use examples

10 years ago[gnugo int] Insert frolic xrep starting w/ the leaves.
Thien-Thi Nguyen [Mon, 7 Apr 2014 12:17:14 +0000 (14:17 +0200)]
[gnugo int] Insert frolic xrep starting w/ the leaves.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves ...)
(... tip-p): New internal func.
[breathe in]: Don't construct root-forward lists to display;
instead, note fork if on tip of orig and side branches.
[breathe out]: Start displaying from ‘max-move-num’ down;
move to ‘point-min’ at initially, before each line; pop from
copy of ‘ends’ directly; use ‘point-marker’ for ‘finish’.

10 years ago[gnugo int] Move precise fanout computation to "breathe in".
Thien-Thi Nguyen [Mon, 7 Apr 2014 11:21:16 +0000 (13:21 +0200)]
[gnugo int] Move precise fanout computation to "breathe in".

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves link):
Use ‘pushnew’; push the node's branch number directly.
(gnugo-frolic-in-the-leaves): Check for continuation node
prior to appending ‘acc’; link it only on non-empty ‘acc’;
in "breathe out", accumulate into ‘forks’ directly.

10 years ago[gnugo int] Decruft: Consolidate "breathe in" loops.
Thien-Thi Nguyen [Mon, 7 Apr 2014 09:04:19 +0000 (11:04 +0200)]
[gnugo int] Decruft: Consolidate "breathe in" loops.

* packages/gnugo/gnugo.el (gnugo-frolic-in-the-leaves):
...here, as :monkey no longer confers a priori move-number info.

10 years ago[gnugo int] Comment munging; nfc.
Thien-Thi Nguyen [Mon, 7 Apr 2014 06:10:35 +0000 (08:10 +0200)]
[gnugo int] Comment munging; nfc.

10 years ago[gnugo int] Avoid lower move-num candidates in déjà-vu search.
Thien-Thi Nguyen [Mon, 7 Apr 2014 06:10:09 +0000 (08:10 +0200)]
[gnugo int] Avoid lower move-num candidates in déjà-vu search.

* packages/gnugo/gnugo.el (gnugo-note): Truncate
branch search on encoutering node w/ insufficient move number.

10 years ago[gnugo int] Drop :monkey COUNT; use node's tree MNUM directly.
Thien-Thi Nguyen [Sun, 6 Apr 2014 15:49:22 +0000 (17:49 +0200)]
[gnugo int] Drop :monkey COUNT; use node's tree MNUM directly.

* packages/gnugo/gnugo.el (gnugo-put): Update :monkey description.
(gnugo-describe-internal-properties):
Use ‘gnugo--tree-mnum’; don't bother w/ :monkey COUNT.
(gnugo-move-history): Use first node's tree MNUM directly.
(gnugo-frolic-in-the-leaves): Compute ‘max-move-num’
from ‘ends’ nodes' tree MNUM directly; drop hash table ‘order’.
(gnugo-note, gnugo-magic-undo): Don't update :monkey COUNT.
(gnugo-read-sgf-file, gnugo-board-mode): Don't init :monkey COUNT.

10 years ago[gnugo int] Maintain tree MNUM.
Thien-Thi Nguyen [Sun, 6 Apr 2014 15:04:31 +0000 (17:04 +0200)]
[gnugo int] Maintain tree MNUM.

* packages/gnugo/gnugo.el (gnugo--tree-mnum): New defsubst.
(gnugo-note): Record new node's move number in the tree MNUM.
(gnugo/sgf-create): Change tree MNUM weakness to ‘key’.

10 years ago[gnugo int] Add abstraction: gnugo--mkht
Thien-Thi Nguyen [Sun, 6 Apr 2014 14:47:59 +0000 (16:47 +0200)]
[gnugo int] Add abstraction: gnugo--mkht

* packages/gnugo/gnugo.el (gnugo--mkht): New defsubst.
(gnugo-frolic-in-the-leaves, gnugo-board-mode)
(gnugo/sgf-create, gnugo/sgf-hang-from-root): Use it.

10 years ago[gnugo int] Fix bug: Detect case for KIDS addition correctly.
Thien-Thi Nguyen [Sun, 6 Apr 2014 10:46:42 +0000 (12:46 +0200)]
[gnugo int] Fix bug: Detect case for KIDS addition correctly.

Introduced 2014-04-05, "Expand gametree IR: MNUM, KIDS, ROOT".

* packages/gnugo/gnugo.el (gnugo/sgf-create):
For multiple-kids detection, phase 2, invert gate predicate.

10 years agoRename ggtags-delete-tag-files to ggtags-delete-tags
Leo Liu [Sun, 6 Apr 2014 02:10:22 +0000 (10:10 +0800)]
Rename ggtags-delete-tag-files to ggtags-delete-tags

10 years agoFix warning "making variable buffer local while let-bound!"
Leo Liu [Sun, 6 Apr 2014 01:47:36 +0000 (09:47 +0800)]
Fix warning "making variable buffer local while let-bound!"

for ggtags-global-output-format.

10 years ago[gnugo int] Expand gametree IR: MNUM, KIDS, ROOT.
Thien-Thi Nguyen [Sat, 5 Apr 2014 12:06:34 +0000 (14:06 +0200)]
[gnugo int] Expand gametree IR: MNUM, KIDS, ROOT.

* packages/gnugo/gnugo.el (gnugo--tree-ends): Rewrite.
(gnugo--set-tree-ends): Likewise, as a defsubst.
(gnugo-describe-internal-properties): Frob :sgf-gametree, too.
(gnugo--root-node): Rewrite.
(gnugo--set-tree-ends-actually): Delete func.
(gnugo/sgf-root-node): Delete func.
(gnugo/sgf-create TREE): Take also MNUM, KIDS;
compute and record move number of ‘node’;
record multiple-kids case in two phases;
update recursive call.
(gnugo/sgf-create): Update call to ‘TREE’;
return [MNUM KIDS ENDS ROOT].

10 years ago[gnugo int] Invert ‘if’ CONDITION and THEN/ELSE clauses.
Thien-Thi Nguyen [Sat, 5 Apr 2014 11:51:21 +0000 (13:51 +0200)]
[gnugo int] Invert ‘if’ CONDITION and THEN/ELSE clauses.

* packages/gnugo/gnugo.el (gnugo/sgf-create):
...here, to place the "multiple" case as the ELSE.

10 years ago[gnugo int] Use ‘gnugo--tree-ends’ more.
Thien-Thi Nguyen [Sat, 5 Apr 2014 11:26:41 +0000 (13:26 +0200)]
[gnugo int] Use ‘gnugo--tree-ends’ more.

Omission from 2014-04-05,
"Add abstractions: gnugo--{,set-}tree-ends".

* packages/gnugo/gnugo.el (gnugo-note, gnugo-magic-undo): ...here.

10 years ago[gnugo] Declare dependency on ‘ascii-art-to-unicode’.
Thien-Thi Nguyen [Sat, 5 Apr 2014 10:36:16 +0000 (12:36 +0200)]
[gnugo] Declare dependency on ‘ascii-art-to-unicode’.

Omission from 2014-04-03, "Add command
‘gnugo-frolic-in-the-leaves’ and keybinding".

* packages/gnugo/gnugo.el [Package-Requires]: New header.

10 years ago[gnugo int] Make ‘gnugo--no-regrets’ take ENDS directly.
Thien-Thi Nguyen [Sat, 5 Apr 2014 10:27:00 +0000 (12:27 +0200)]
[gnugo int] Make ‘gnugo--no-regrets’ take ENDS directly.

* packages/gnugo/gnugo.el (gnugo--no-regrets): ...here.
(gnugo-note, gnugo-magic-undo): Update calls.

10 years ago[gnugo int] Add abstractions: gnugo--{,set-}tree-ends
Thien-Thi Nguyen [Sat, 5 Apr 2014 10:20:11 +0000 (12:20 +0200)]
[gnugo int] Add abstractions: gnugo--{,set-}tree-ends

* packages/gnugo/gnugo.el
(gnugo--tree-ends): New defsubst.
(gnugo--set-tree-ends-actually): New func.
(gnugo--set-tree-ends): New macro.
(gnugo-frolic-in-the-leaves, gnugo--no-regrets)
(gnugo-read-sgf-file, gnugo-board-mode, gnugo/sgf-root-node):
Use ‘gnugo--tree-ends’.
(gnugo-note): Likewise, and also ‘gnugo--set-tree-ends’.

10 years ago[gnugo int] Use ‘gnugo/sgf-create’ more.
Thien-Thi Nguyen [Sat, 5 Apr 2014 08:51:58 +0000 (10:51 +0200)]
[gnugo int] Use ‘gnugo/sgf-create’ more.

* packages/gnugo/gnugo.el (gnugo-board-mode): ...here,
for uninitialized board setup, instead of manual consing.

10 years ago[gnugo] Support SGF[4] parsing from string data.
Thien-Thi Nguyen [Sat, 5 Apr 2014 08:47:39 +0000 (10:47 +0200)]
[gnugo] Support SGF[4] parsing from string data.

* packages/gnugo/gnugo.el
(gnugo-read-sgf-file): Use ‘gnugo/sgf-create’.
(gnugo/sgf-create): Rename from ‘gnugo/sgf-read-file’;
rename 1st arg to FILE-OR-DATA; take optional 2nd arg DATA-P;
if DATA-P set, arrange to parse FILE-OR-DATA directly.

10 years ago[gnugo int] Avoid double list-reverse.
Thien-Thi Nguyen [Sat, 5 Apr 2014 08:15:08 +0000 (10:15 +0200)]
[gnugo int] Avoid double list-reverse.

* packages/gnugo/gnugo.el (gnugo-describe-internal-properties):
Use ‘do (push ...)’ instead of ‘collect’ in ‘loop’;
don't ‘reverse’ the result later.

10 years ago[gnugo int] Specify STREAM to ‘pp’ directly.
Thien-Thi Nguyen [Sat, 5 Apr 2014 08:06:34 +0000 (10:06 +0200)]
[gnugo int] Specify STREAM to ‘pp’ directly.

* packages/gnugo/gnugo.el (gnugo-describe-internal-properties):
...here, instead of ‘let’-binding ‘standard-output’.

10 years agoMerge easy-kill as packages/easy-kill
Leo Liu [Sat, 5 Apr 2014 04:05:30 +0000 (12:05 +0800)]
Merge easy-kill as packages/easy-kill

10 years agoAdd easy-kill to externals-list
Leo Liu [Sat, 5 Apr 2014 03:53:59 +0000 (11:53 +0800)]
Add easy-kill to externals-list

10 years agoCleanup and preparation for inclusion in GNU ELPA
Leo Liu [Sat, 5 Apr 2014 03:38:55 +0000 (11:38 +0800)]
Cleanup and preparation for inclusion in GNU ELPA

Rename easy-kill-message-nolog to easy-kill-echo.

10 years agoMerge branch 'master' of github.com:leoliu/ggtags
Leo Liu [Sat, 5 Apr 2014 01:13:01 +0000 (09:13 +0800)]
Merge branch 'master' of github.com:leoliu/ggtags

10 years agoDoc fixes and add NEWS for 0.8.2
Leo Liu [Sat, 5 Apr 2014 00:43:49 +0000 (08:43 +0800)]
Doc fixes and add NEWS for 0.8.2

10 years ago[gnugo int] Remove abstraction: continue-on
Thien-Thi Nguyen [Fri, 4 Apr 2014 10:17:29 +0000 (12:17 +0200)]
[gnugo int] Remove abstraction: continue-on

* packages/gnugo/gnugo.el (gnugo-note): ...here, inlining it.

10 years ago[gnugo int] Support growth also off of main line.
Thien-Thi Nguyen [Fri, 4 Apr 2014 10:11:32 +0000 (12:11 +0200)]
[gnugo int] Support growth also off of main line.

* packages/gnugo/gnugo.el (gnugo-note):
For déjà-vu check, don't start w/ ‘bidx’ if no regrets;
also, copy the old branch immediately to its right,
instead of placing it at the end of the ends vector.

10 years agoProperly fix the bug by delaying compilation finish functions
Leo Liu [Fri, 4 Apr 2014 05:02:13 +0000 (13:02 +0800)]
Properly fix the bug by delaying compilation finish functions

Function compilation-auto-jump may trigger running process sentinels
and thus ggtags-global-handle-exit causing itself to fail. This
happens fairly often on remote hosts via tramp due to
accept-process-output.

10 years agoRevert "Don't reply on excution order of filter and sentinel functions"
Leo Liu [Fri, 4 Apr 2014 03:58:23 +0000 (11:58 +0800)]
Revert "Don't reply on excution order of filter and sentinel functions"

This reverts commit 03345fb9a25bc2cf09bebc2b96bd867d1c979cc2.

The commit appears to fix the bug because the idle timer does not run
in the *ggtags-global* buffer.

10 years ago[gnugo int] Use ‘cl-labels’ less.
Thien-Thi Nguyen [Thu, 3 Apr 2014 13:24:34 +0000 (15:24 +0200)]
[gnugo int] Use ‘cl-labels’ less.

* packages/gnugo/gnugo.el (gnugo-move-history): Use ‘cl-flet*’.
(gnugo-note, gnugo-close-game, gnugo-toggle-dead-group)
(gnugo-display-final-score, gnugo/sgf-read-file): Use ‘cl-flet’.
(:gnugo-gtp-command-spec): Use ‘cl-flet*’, ‘cl-flet’.

10 years ago[gnugo int] Use ‘gnugo--as-pos-func’ more.
Thien-Thi Nguyen [Thu, 3 Apr 2014 12:35:35 +0000 (14:35 +0200)]
[gnugo int] Use ‘gnugo--as-pos-func’ more.

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

10 years ago[gnugo] Add command ‘gnugo-frolic-in-the-leaves’ and keybinding.
Thien-Thi Nguyen [Thu, 3 Apr 2014 10:50:09 +0000 (12:50 +0200)]
[gnugo] Add command ‘gnugo-frolic-in-the-leaves’ and keybinding.

* packages/gnugo/gnugo.el: Require ‘ascii-art-to-unicode’.
(gnugo--as-pos-func): New func.
(gnugo-frolic-in-the-leaves): New command.
(gnugo-board-mode-map): Bind ‘L’ to ‘gnugo-frolic-in-the-leaves’.

10 years ago[aa2u] Release: 1.5
Thien-Thi Nguyen [Thu, 3 Apr 2014 10:25:36 +0000 (12:25 +0200)]
[aa2u] Release: 1.5

* packages/ascii-art-to-unicode/ascii-art-to-unicode.el [Version]: Bump to "1.5".

10 years ago[aa2u] Make ‘aa2u’ region-aware.
Thien-Thi Nguyen [Thu, 3 Apr 2014 10:22:42 +0000 (12:22 +0200)]
[aa2u] Make ‘aa2u’ region-aware.

* packages/ascii-art-to-unicode/ascii-art-to-unicode.el (aa2u):
Take args BEG and END; use "r" in ‘interactive’ spec;
don't bother w/ internal func ‘do-it!’.

10 years ago[gnugo maint] Add some debugging aids to HACKING; nfc.
Thien-Thi Nguyen [Thu, 3 Apr 2014 09:51:50 +0000 (11:51 +0200)]
[gnugo maint] Add some debugging aids to HACKING; nfc.

10 years agoDon't reply on excution order of filter and sentinel functions
Leo Liu [Thu, 3 Apr 2014 08:06:56 +0000 (16:06 +0800)]
Don't reply on excution order of filter and sentinel functions

There is no guarantee ggtags-global-handle-exit will be called after
ggtags-global-filter. So don't rely on this.

For example compile-goto-error on remote file (via tramp) might call
accept-process-output which allows process sentinel functions to run
per (info "(elisp)Sentinels").

10 years agoNew macro ggtags-with-temp-message that reports execution time
Leo Liu [Thu, 3 Apr 2014 02:33:01 +0000 (10:33 +0800)]
New macro ggtags-with-temp-message that reports execution time

10 years agoMake ggtags-use-project-gtagsconf work on remote projects
Leo Liu [Thu, 3 Apr 2014 02:17:42 +0000 (10:17 +0800)]
Make ggtags-use-project-gtagsconf work on remote projects

by using --gtagsconf instead of setenv'ing GTAGSCONF which does not
work on remote projects via tramp.

10 years agoRevert "Fix ggtags-with-current-project to include GTAGSCONF"
Leo Liu [Thu, 3 Apr 2014 02:12:17 +0000 (10:12 +0800)]
Revert "Fix ggtags-with-current-project to include GTAGSCONF"

This reverts commit e7c5371028912e07c37de2bf1c80c88bf51a1fea.

10 years agoMake ggtags-eldoc-function work better when no project root
Leo Liu [Thu, 3 Apr 2014 00:24:50 +0000 (08:24 +0800)]
Make ggtags-eldoc-function work better when no project root

Make M-. on #include line also triggers indexing project if not
already.

10 years agoFix multiple calls of ggtags-show-definition
Leo Liu [Wed, 2 Apr 2014 03:10:10 +0000 (11:10 +0800)]
Fix multiple calls of ggtags-show-definition

and misuse of pcase equality in ggtags-eldoc-function.

Fix ggtags-global-output to notice the problem of running multiple
processes.

10 years agoDon't activate eldoc support by default
Leo Liu [Wed, 2 Apr 2014 01:02:28 +0000 (09:02 +0800)]
Don't activate eldoc support by default

since it is difficult to enable it without overriding users' settings
for emacs <= 24.3.