Thien-Thi Nguyen [Thu, 6 Mar 2014 11:44:42 +0000 (12:44 +0100)]
[gnugo int] Use ‘eq’ less.
* gnugo.el (gnugo-sentinel): Use ‘memq’.
(gnugo-move-history finish): New func.
(gnugo-move-history): Use ‘if’, ‘case’, ‘finish’.
(:gnugo-gtp-command-spec help): Use ‘if’, ‘case’.
Thien-Thi Nguyen [Thu, 6 Mar 2014 10:33:16 +0000 (11:33 +0100)]
[gnugo int] Streamline subproc (de-)marshalling.
* packages/gnugo/gnugo.el (gnugo--q):
Rename from ‘gnugo-synchronous-send/return’;
change args from MESSAGE to FMT and ARGS;
apply ‘format’ if non-null ARGS;
use ‘compare-strings’ instead of ‘string-match’;
use separate state to signal finish instead of type change;
don't bother with ‘current-time’; return string.
(gnugo-query): Update call, docstring.
(gnugo-propertize-board-buffer, gnugo-merge-showboard-results)
(gnugo-move, gnugo-pass, gnugo-display-group-data)
(gnugo-read-sgf-file, gnugo-magic-undo, gnugo-command): Update calls.
Leo Liu [Tue, 4 Mar 2014 01:13:48 +0000 (09:13 +0800)]
Combine ggtags-global-column and tag name search
Cannot rely on ggtags-global-column entirely because the source text
may or may not include the whole source line depending on plugin and
output format. See discussion
http://thread.gmane.org/gmane.comp.gnu.global.bugs/1675
Thien-Thi Nguyen [Thu, 27 Feb 2014 09:45:05 +0000 (10:45 +0100)]
[gnugo slog] Fix bug: Avoid ‘cl-lib’ funcs; use only macros.
This silences byte-compiler warnings under Emacs 24.4.
Regression introduced 2014-01-30, "Use ‘cl-labels’ instead of ‘flet’".
Reported by Juanma Barranquero:
<http://lists.gnu.org/archive/html/gnu-emacs-sources/2014-02/msg00016.html>.
* gnugo.el: Don't require ‘cl-lib’;
instead, require ‘cl’, and wrap with ‘eval-when-compile’.
(gnugo-animate-group): Use ‘loop’, ‘zerop’, ‘logand’.
(gnugo-describe-position): Use ‘loop’.
David Engster [Mon, 24 Feb 2014 21:14:38 +0000 (22:14 +0100)]
Minimap: Update to version 1.1.
- Largely rewritten as a minor mode; use M-x minimap-mode to
enable/disable.
- Minimap will now remain active for all buffers which derive from
`prog-mode' (can be changed through `minimap-major-modes'). The
minimap window will be automatically created or deleted (see new
variables `minimap-recreate-window' and
`minimap-automatically-delete-window').
- Possibility to set a minimum width of the minimap window
(`minimap-minimum-width').
- Minimap window will be marked so that you should not be able to
enter it.
- Semantic overlays will be automatically updated during editing.
- Lots of bug fixes.
Thien-Thi Nguyen [Thu, 13 Feb 2014 11:29:19 +0000 (12:29 +0100)]
[gnugo int] Add abstraction: gnugo--unclose-game
* packages/gnugo/gnugo.el (gnugo--unclose-game): New func.
(gnugo-magic-undo): Use it.
(boardsize, clear_board, fixed_handicap):
Likewise, in the value of the ‘:post-thunk’ property.
Thien-Thi Nguyen [Fri, 7 Feb 2014 09:34:22 +0000 (10:34 +0100)]
[gnugo int] Hang the sync-return-stash on the process object.
* packages/gnugo/gnugo.el (gnugo-synchronous-send/return):
Don't use ‘gnugo-put’, ‘gnugo-get’; instead, use
‘process-put’, ‘process-get’ with property ‘:srs’.
Thien-Thi Nguyen [Thu, 6 Feb 2014 09:59:30 +0000 (10:59 +0100)]
[gnugo int] Use ‘number-sequence’ more.
* packages/gnugo/gnugo.el (gnugo-animate-group):
For image display ‘spec’ handling, don't map over
an exploded string, ignoring the individual characters,
and manually toggling the state; instead, map over an
integer, using the number's divisibility by two to select.
Thien-Thi Nguyen [Mon, 3 Feb 2014 17:42:58 +0000 (18:42 +0100)]
[gnugo maint] Update a musing item in HACKING; nfc.
Although it would be nice to avoid a "merge commit" through constant
rebase (such that the final merge can be a fast-forward operation),
that makes it painful / difficult for others to follow.
Thien-Thi Nguyen [Mon, 3 Feb 2014 09:36:46 +0000 (10:36 +0100)]
[gnugo] Indicate buffer not modified after save.
* packages/gnugo/gnugo.el (gnugo-animate-group): Use current
value of ‘buffer-modified-p’ in loop instead of ‘t’.
(gnugo-write-sgf-file): Clear buffer-modified state.
Thien-Thi Nguyen [Fri, 31 Jan 2014 12:51:08 +0000 (13:51 +0100)]
[gnugo int] Use ‘(split-string STR SEP t)’.
* packages/gnugo/gnugo.el (gnugo-animate-group): ...here,
instead of manually deleting the empty strings
returned from a two-arg call to ‘split-string’.
Thien-Thi Nguyen [Thu, 30 Jan 2014 19:52:17 +0000 (20:52 +0100)]
[gnugo] Don't use ‘process-kill-buffer-query-function’.
* packages/gnugo/gnugo.el (gnugo-board-mode):
Make ‘kill-buffer-query-functions’ buffer-local and
then remove ‘process-kill-buffer-query-function’ from it.
Thien-Thi Nguyen [Thu, 30 Jan 2014 12:26:41 +0000 (13:26 +0100)]
[gnugo] Use ‘cl-labels’ instead of ‘flet’.
* packages/gnugo/gnugo.el: Don't require ‘cl’;
instead, require ‘cl-lib’; do ‘s/flet/cl-labels/g’.
(gnugo-note): Use #'mog instead of 'mog as ‘mapcar’ 1st arg.
(gnugo-toggle-dead-group): Use #'populate.
(:gnugo-gtp-command-spec defgtp): Use #'jam, #'add.
(gnugo/sgf-write-file): Use #'one, #'two.
Michal Nazarewicz [Mon, 24 Feb 2014 00:28:48 +0000 (01:28 +0100)]
* num3-mode.el: Catch strings looking like hex number even w/o 0x prefix.
Update `num3--number-re' to catch strings which are a whole word, have
only hexadecimal digits and have at least one non-decimal hexadecimal
digit (i.e. letter from A to F), and treat them as hexadecimal number.
Also update `num3--number-re' to properly catch Emacs Lisp's