Stefan Monnier [Mon, 24 Mar 2014 19:31:17 +0000 (15:31 -0400)]
Subject: Fix up quoting of keywords. Remove leftover support for *-pkg.el.
* admin/archive-contents.el (batch-make-archive, archive--refresh-pkg-file):
Remove support for foo-pkg.el files.
(archive-prepare-packages): Signal an error for missing .changelog-witness.
(archive--alist-to-plist-args): Rename from archive--alist-to-plist,
quote elements.
(archive--plist-args-to-alist): Rename from archive--plist-to-alist,
unquote elements.
Thien-Thi Nguyen [Mon, 24 Mar 2014 12:47:41 +0000 (13:47 +0100)]
[gnugo int] Invert gametree IR to hang by the leaves.
* packages/gnugo/gnugo.el (gnugo-put): Update :monkey doc.
(gnugo-describe-internal-properties): Update :monkey transform.
(gnugo-move-history): Use :monkey MEM directly.
(gnugo-move-history finish): Don't use ‘next’ rv
as continuation condition; instead, use non-nil ‘mem’.
(gnugo-note): Use :monkey MEM directly; rework link wrangling.
(gnugo-read-sgf-file): Update :monkey init.
(gnugo-magic-undo): Rework link wrangling.
(gnugo-board-mode): Update :sgf-gametree and :monkey init.
(gnugo/sgf-root-node): Rewrite.
(gnugo/sgf-read-file morep): New internal func.
(gnugo/sgf-read-file seek): Use ‘morep’.
(gnugo/sgf-read-file TREE): Rewrite to hang by the leaves.
(gnugo/sgf-read-file): Iterate at collection level.
(gnugo/sgf-hang-from-root): New func.
(gnugo/sgf-write-file): Use ‘gnugo/sgf-hang-from-root’.
Thien-Thi Nguyen [Fri, 21 Mar 2014 11:02:58 +0000 (12:02 +0100)]
[gnugo sgf] Normalize PASS internal rep on read, as "".
* packages/gnugo/gnugo.el
(gnugo-move-history as-pos): Expect "" for PASS.
(gnugo-note mog): Produce "" for PASS.
(gnugo-read-sgf-file): Don't normalize PASS to "tt".
(gnugo/sgf-read-file): Keep track of SZ property.
(gnugo/sgf-read-file one): For ‘stone’, ‘point’ and ‘move’
types, substitute "tt" with "" if we know ‘SZ’ and it's <= 19.
(gnugo/sgf-read-file NODE): Save SZ property value if found.
Leo Liu [Fri, 21 Mar 2014 02:57:19 +0000 (10:57 +0800)]
Polish last change
- Replace 'restore' with 'rerun' which seems clearer.
- Remember last position in ggtags-global-rerun-search and kill the
search buffer on quit or done.
- Make sure ggtags-global-search-history is ordered by access time.
Thien-Thi Nguyen [Thu, 20 Mar 2014 14:29:35 +0000 (15:29 +0100)]
[gnugo] Fix bug: On load, follow mainline through subtrees.
* packages/gnugo/gnugo.el (gnugo-read-sgf-file):
For move count loop, don't stop at first subtree;
instead, recognize its non-nodeness and recurse into it.
Thien-Thi Nguyen [Wed, 19 Mar 2014 08:03:52 +0000 (09:03 +0100)]
[gnugo int] Add abstraction: gnugo--blackp
* packages/gnugo/gnugo.el (gnugo--blackp): New defsubst.
(gnugo-other, gnugo-push-move, gnugo-refresh)
(gnugo-magic-undo, gnugo-display-final-score, gnugo): Use it.
Thien-Thi Nguyen [Wed, 19 Mar 2014 07:59:18 +0000 (08:59 +0100)]
[gnugo int] Decruft: Infer MOVEP from PROPERTY.
* packages/gnugo/gnugo.el (gnugo-note):
Don't take optional arg MOVEP; instead, infer that
the operation is a move if PROPERTY is ‘:B’ or ‘:W’.
(gnugo-push-move): Update call to ‘gnugo-note’.
* packages/gnugo/gnugo.el (gnugo--root-node): New func.
(gnugo--root-prop): Rename from ‘gnugo-treeroot’;
take optional arg TREE; default to :sgf-gametree if not specified.
(gnugo--set-root-prop, gnugo--unclose-game): Use ‘gnugo--root-node’.
(gnugo-read-sgf-file): Use ‘gnugo--root-prop’, specifying TREE.
(gnugo-display-final-score, gnugo): Use ‘gnugo--root-prop’.
(gnugo/sgf-root-node): New func.
Thien-Thi Nguyen [Tue, 18 Mar 2014 11:01:10 +0000 (12:01 +0100)]
[gnugo] Handle ‘(gnugo-move-history 'two)’.
* packages/gnugo/gnugo.el (gnugo-move-history):
If RSEL is ‘two’, return the last two moves as a list.
(gnugo-read-sgf-file): Use ‘gnugo-move-history’.
Thien-Thi Nguyen [Fri, 14 Mar 2014 10:11:36 +0000 (11:11 +0100)]
[gnugo int] Cache gametree prop ‘:SZ’ as gnugo prop ‘:SZ’.
* packages/gnugo/gnugo.el (gnugo-goto-pos)
(gnugo-propertize-board-buffer, gnugo-move-history)
(gnugo-note, gnugo-refresh, gnugo): Get board
size via ‘gnugo-get’ instead of ‘gnugo-treeroot’.
(gnugo--SZ!): New defsubst.
(gnugo-read-sgf-file, gnugo-board-mode)
(:gnugo-gtp-command-spec boardsize): Use ‘gnugo--SZ!’.
Thien-Thi Nguyen [Fri, 14 Mar 2014 08:05:22 +0000 (09:05 +0100)]
[gnugo sgf] Fix bug: Output subtrees correctly.
Long-standing -- from inception -- omission.
* packages/gnugo/gnugo.el (gnugo/sgf-write-file >>tree):
Don't assume all elements of a tree are nodes; instead,
handle nodes as before, and recurse on trailing subtree elems.
Thien-Thi Nguyen [Fri, 14 Mar 2014 07:44:20 +0000 (08:44 +0100)]
[gnugo sgf] Move gratuitous newline from after to before (sub)trees.
* packages/gnugo/gnugo.el (gnugo/sgf-write-file >>tree):
At the start, insert a newline if not at bol;
at the end, don't insert a newline.
(gnugo/sgf-write-file): Insert a newline at EOF.
Thien-Thi Nguyen [Thu, 13 Mar 2014 16:09:17 +0000 (17:09 +0100)]
[gnugo] Fix bug: Handle property value type ‘none’ normally.
* packages/gnugo/gnugo.el (gnugo/sgf-read-file one):
No longer special case property value type ‘none’;
instead, read the supplied value and discard it,
saving instead a hardcoded empty string, i.e., "".
David Engster [Tue, 11 Mar 2014 22:05:56 +0000 (23:05 +0100)]
Update Minimap to version 1.2.
- Change some defaults: better colors, reduced update delay.
- `minimap-tag-only': New experimental feature to only display an
'abstract view' of the buffer with overlays generated from
Semantic information. Works only for buffers parsed by Semantic.
- `minimap-highlight-line': Highlight current line in Minimap.
- Fix autoloads.
- Display lines denoting beginning/end of functions in Semantic
overlays.
Thien-Thi Nguyen [Tue, 11 Mar 2014 04:40:05 +0000 (05:40 +0100)]
[gnugo] Make ‘C-u M-u’ switch roles.
* packages/gnugo/gnugo.el (gnugo-undo-one-move):
Add optional arg SWITCH; if specified, arrange for user
to play the color of the next move (and GNU Go the opposite).
Thien-Thi Nguyen [Sun, 9 Mar 2014 14:43:07 +0000 (15:43 +0100)]
[gnugo int] Avoid redundant calls to ‘gnugo-get’.
* packages/gnugo/gnugo.el (gnugo-move-history):
(gnugo-read-sgf-file, gnugo-magic-undo, gnugo-display-final-score)
(gnugo-board-mode): Add local vars to save ‘gnugo-get’ values.