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.
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.
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
Andrey Kotlarski [Sun, 23 Feb 2014 15:33:35 +0000 (17:33 +0200)]
* packages/vlf: Version 1.5. Add hexl-mode integration and hook
extensibility.
* vlf.el: (vlf-before-batch-functions, vlf-after-batch-functions):
New hooks.
(vlf-mode): Play well with hexl-mode. Don't disable mode in case
user has declined to reload whole file.
(vlf-keep-alive, vlf-hexl-before, vlf-hexl-after): New functions.
Use them in hooks.
(vlf-hexl-save, vlf-hexl-scroll-up, vlf-hexl-scroll-down): New
advices.
* vlf-write.el (vlf-write): Run batch hooks. Check if tramp is
loaded.
* vlf-search.el (vlf-re-search, vlf-goto-line): Run batch hooks.
Check if tramp is loaded.
* vlf-occur.el (vlf-occur): Run batch hooks.
(vlf-build-occur): Check if tramp is loaded.
* vlf-integrate.el: Minor whitespace adjustment.
* vlf-ediff.el: Enable lexical scoping.
(vlf-ediff-next): Run batch hooks. Check if tramp is loaded.
* vlf-base.el (vlf-before-chunk-update, vlf-after-chunk-update):
New hooks.
(vlf-move-to-chunk-1, vlf-move-to-chunk-2): Run them.
(vlf-move-to-chunk-2): Delete undo info only in case it's not
disabled.
(vlf-insert-file-contents-1): Use insert-file-contents instead of
manual decoding and remove position parameter.
(vlf-insert-file-contents, vlf-adjust-start): Adjust calls.