]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
10 years agoChange echo statements during build.
Barry O'Reilly [Thu, 24 Apr 2014 21:23:01 +0000 (17:23 -0400)]
Change echo statements during build.

10 years agoDon't allow package-initialize to use ~/.emacs.d
Nicolas Richard [Thu, 24 Apr 2014 21:16:10 +0000 (17:16 -0400)]
Don't allow package-initialize to use ~/.emacs.d

10 years ago[gnugo int] Snoop ‘--handicap N’ for empty new board.
Thien-Thi Nguyen [Thu, 24 Apr 2014 18:05:58 +0000 (20:05 +0200)]
[gnugo int] Snoop ‘--handicap N’ for empty new board.

Regression introduced from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo] Make undo commands silently handle overkill.
Thien-Thi Nguyen [Thu, 24 Apr 2014 13:00:37 +0000 (15:00 +0200)]
[gnugo] Make undo commands silently handle overkill.

It's impolite to reflect impoliteness.  :-D

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Don't use ‘gnugo--q/ue’ for GTP "undo"; instead,
use ‘gnugo--q’, detect overkill, and stop looping.

10 years ago[gnugo int] Add abstraction: gnugo--no-worries
Thien-Thi Nguyen [Thu, 24 Apr 2014 12:41:41 +0000 (14:41 +0200)]
[gnugo int] Add abstraction: gnugo--no-worries

* packages/gnugo/gnugo.el (gnugo--no-worries): New defsubst.
(gnugo--q/ue): Use ‘gnugo--no-worries’.

10 years ago[gnugo int] Add abstraction: gnugo--resignp
Thien-Thi Nguyen [Thu, 24 Apr 2014 09:49:18 +0000 (11:49 +0200)]
[gnugo int] Add abstraction: gnugo--resignp

* packages/gnugo/gnugo.el (gnugo--resignp): New defsubst.
(gnugo-move-history, gnugo-push-move, gnugo-refresh)
(gnugo-display-final-score): Use ‘gnugo--resignp’.

10 years ago[gnugo int] Drop abstraction: pretty
Thien-Thi Nguyen [Thu, 24 Apr 2014 09:42:06 +0000 (11:42 +0200)]
[gnugo int] Drop abstraction: pretty

* packages/gnugo/gnugo.el (gnugo-move-history pretty):
Delete internal func.
(gnugo-move-history next): Revert to pre-‘pretty’ code.
(gnugo-move-history): For ‘bpos’ RSEL, convert search
condition from two negated string comparisons to one
"normal CC" position detection, and delay ‘as-pos’
call to rv computation.

10 years ago[gnugo int] Move ‘gnugo--passp’ earlier in file.
Thien-Thi Nguyen [Wed, 23 Apr 2014 20:14:25 +0000 (22:14 +0200)]
[gnugo int] Move ‘gnugo--passp’ earlier in file.

* packages/gnugo/gnugo.el (gnugo--passp):
...so that it precedes its first use.

10 years ago[gnugo maint] Update HACKING; nfc.
Thien-Thi Nguyen [Wed, 23 Apr 2014 09:04:37 +0000 (11:04 +0200)]
[gnugo maint] Update HACKING; nfc.

10 years ago[gnugo int] Use ‘gnugo-current-player’ more.
Thien-Thi Nguyen [Tue, 22 Apr 2014 16:18:24 +0000 (18:18 +0200)]
[gnugo int] Use ‘gnugo-current-player’ more.

* packages/gnugo/gnugo.el (gnugo-refresh):
...here, obsoleting two local vars, as well.

10 years ago[gnugo] Fix bug: Use ‘gnugo-gate’ for abdication enable.
Thien-Thi Nguyen [Tue, 22 Apr 2014 16:09:57 +0000 (18:09 +0200)]
[gnugo] Fix bug: Use ‘gnugo-gate’ for abdication enable.

Gating only on game-over is not enough.

* packages/gnugo/gnugo.el (gnugo-toggle-abdication): ...here.

10 years ago[gnugo] On disable, transform in-flight user-move into suggestion.
Thien-Thi Nguyen [Tue, 22 Apr 2014 15:26:57 +0000 (17:26 +0200)]
[gnugo] On disable, transform in-flight user-move into suggestion.

* packages/gnugo/gnugo.el (gnugo-toggle-abdication):
Don't signal "too soon" error; instead, transform scheduled
user-move into a suggestion, include extra info in the
status message and sleep for 2 sec after message display;
update condition for ‘(gnugo-get-move gcolor)’ accordingly.

10 years ago[gnugo] Allow user to request suggestion for GNU Go.
Thien-Thi Nguyen [Tue, 22 Apr 2014 10:20:58 +0000 (12:20 +0200)]
[gnugo] Allow user to request suggestion for GNU Go.

* packages/gnugo/gnugo.el (gnugo-get-move-insertion-filter):
Include color in suggestion message.
(gnugo-request-suggestion): Use ‘gnugo-current-player’.

10 years ago[gnugo] Fix bug: DTRT for suggestion ‘nowarp’ check.
Thien-Thi Nguyen [Tue, 22 Apr 2014 10:14:58 +0000 (12:14 +0200)]
[gnugo] Fix bug: DTRT for suggestion ‘nowarp’ check.

From inception 2014-04-15, "New
command: ‘S’ (gnugo-request-suggestion)".

* packages/gnugo/gnugo.el (gnugo-get-move-insertion-filter):
Don't feed ‘cons’ rv to ‘destructuring-bind’; instead,
drop var ‘pos-or-pass’, repurpose var ‘full’ -- surely
succumbing to Bad Style :-/, and access :waiting directly.

10 years ago[gnugo int] Use ‘destructuring-bind’ more.
Thien-Thi Nguyen [Tue, 22 Apr 2014 09:45:50 +0000 (11:45 +0200)]
[gnugo int] Use ‘destructuring-bind’ more.

* packages/gnugo/gnugo.el (gnugo-gate): ...here,
for :waiting check, in the process making it player-agnostic.

10 years ago[gnugo] Allow user to move for GNU Go.
Thien-Thi Nguyen [Tue, 22 Apr 2014 09:39:07 +0000 (11:39 +0200)]
[gnugo] Allow user to move for GNU Go.

* packages/gnugo/gnugo.el (gnugo--user-play):
Don't hardcode WHO to ‘gnugo-push-move’;
instead, compute it from :last-mover.

10 years agoMerge branch 'master' of https://github.com/leoliu/easy-kill
Leo Liu [Tue, 22 Apr 2014 15:44:57 +0000 (23:44 +0800)]
Merge branch 'master' of https://github.com/leoliu/easy-kill

10 years agoFix copyright header for test.el
Leo Liu [Tue, 22 Apr 2014 15:36:46 +0000 (23:36 +0800)]
Fix copyright header for test.el

10 years agoFix prefix of last merge and restore deleted files
Leo Liu [Tue, 22 Apr 2014 08:36:30 +0000 (16:36 +0800)]
Fix prefix of last merge and restore deleted files

See discussion
http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00311.html

10 years agoMerge branch 'master' of https://github.com/leoliu/easy-kill
Leo Liu [Tue, 22 Apr 2014 00:29:10 +0000 (08:29 +0800)]
Merge branch 'master' of https://github.com/leoliu/easy-kill

10 years agoFix emacs-snapshot in travis-ci and use svg badge
Leo Liu [Mon, 21 Apr 2014 23:57:12 +0000 (07:57 +0800)]
Fix emacs-snapshot in travis-ci and use svg badge

Thanks to Sebastian Wiesner for these tips in
7a7e446c03a074547bf18e34fe38c346169a9da0

10 years ago[gnugo int] Move ‘gnugo-position’ call down-chain.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:35:53 +0000 (23:35 +0200)]
[gnugo int] Move ‘gnugo-position’ call down-chain.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
...into here if SPEC is neither number nor string.
(gnugo-oops, gnugo-fancy-undo): Update accordingly.

10 years ago[gnugo int] Centralize some "No stone at POS" errors.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:19:12 +0000 (23:19 +0200)]
[gnugo int] Centralize some "No stone at POS" errors.

* packages/gnugo/gnugo.el (gnugo--mem-with-played-stone):
Take optional arg NOERROR; if clear, when no ‘color’
found, signal "No stone at POS" error.
(gnugo--climb-towards-root): Drop "POS already clear" error
handling; use ‘gnugo--mem-with-played-stone’ rv directly.
(gnugo--node-with-played-stone): Take optional arg NOERROR;
pass it to ‘gnugo--mem-with-played-stone’.
(gnugo-describe-position): Specify
NOERROR to ‘gnugo--node-with-played-stone’.
(gnugo-comment): Drop "No stone at POS" error handling;
use ‘gnugo--node-with-played-stone’ rv directly.

10 years ago[gnugo int] Simplify towards-root loop termination check.
Thien-Thi Nguyen [Mon, 21 Apr 2014 21:05:39 +0000 (23:05 +0200)]
[gnugo int] Simplify towards-root loop termination check.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Don't construct local func ‘done’; instead, pre-compute
final MEM and loop until it's reached, as per ‘eq’.

10 years ago[gnugo] Internalize ‘gnugo-magic-undo’.
Thien-Thi Nguyen [Mon, 21 Apr 2014 20:43:45 +0000 (22:43 +0200)]
[gnugo] Internalize ‘gnugo-magic-undo’.

* packages/gnugo/gnugo.el (gnugo--climb-towards-root):
Rename from ‘gnugo-magic-undo’; delete docstring.
(gnugo-undo-one-move, gnugo-undo-two-moves, gnugo-oops)
(gnugo-fancy-undo): Use ‘gnugo--climb-towards-root’.
(:gnugo-gtp-command-spec undo)
(:gnugo-gtp-command-spec gg-undo): Likewise.

10 years ago[gnugo] Validate position arg of GTP commands ‘undo’, ‘gg-undo’.
Thien-Thi Nguyen [Mon, 21 Apr 2014 20:25:27 +0000 (22:25 +0200)]
[gnugo] Validate position arg of GTP commands ‘undo’, ‘gg-undo’.

* packages/gnugo/gnugo.el
(:gnugo-gtp-command-spec validpos): New internal func.
(:gnugo-gtp-command-spec undo)
(:gnugo-gtp-command-spec gg-undo): Use ‘validpos’.

10 years ago[gnugo int] Add abstraction: gnugo--mem-with-played-stone
Thien-Thi Nguyen [Mon, 21 Apr 2014 14:47:41 +0000 (16:47 +0200)]
[gnugo int] Add abstraction: gnugo--mem-with-played-stone

* packages/gnugo/gnugo.el (gnugo--mem-with-played-stone): New func.
(gnugo--node-with-played-stone): Use it; convert to defsubst.

10 years agoFix easy-kill-org-up-element
Leo Liu [Mon, 21 Apr 2014 14:22:52 +0000 (22:22 +0800)]
Fix easy-kill-org-up-element

10 years ago[gnugo int] Add abstraction: gnugo--q/ue
Thien-Thi Nguyen [Mon, 21 Apr 2014 12:04:04 +0000 (14:04 +0200)]
[gnugo int] Add abstraction: gnugo--q/ue

* packages/gnugo/gnugo.el (gnugo--q/ue): New func.
(gnugo-push-move, gnugo-read-sgf-file, gnugo-magic-undo): Use it.

10 years ago[gnugo] Reduce modifier key bouncing for "quick peek" frolics.
Thien-Thi Nguyen [Mon, 21 Apr 2014 11:43:44 +0000 (13:43 +0200)]
[gnugo] Reduce modifier key bouncing for "quick peek" frolics.

* packages/gnugo/gnugo.el
(gnugo-frolic-mode-map): Bind ‘C-q’ to ‘gnugo-frolic-quit’.
(gnugo-board-mode-map): Bind ‘C-c C-l’ to ‘gnugo-frolic-in-the-leaves’.

10 years ago[gnugo] Fix bug: DTRT for :last-user-bpos in undo-one-move ME-NEXT.
Thien-Thi Nguyen [Mon, 21 Apr 2014 11:33:51 +0000 (13:33 +0200)]
[gnugo] Fix bug: DTRT for :last-user-bpos in undo-one-move ME-NEXT.

Omission from 2014-03-11, "Make ‘C-u M-u’ switch roles".

* packages/gnugo/gnugo.el (gnugo-undo-one-move):
Swizzle colors before calling ‘gnugo-magic-undo’.

10 years agoSome tests and bug fixes for org
Leo Liu [Mon, 21 Apr 2014 09:37:05 +0000 (17:37 +0800)]
Some tests and bug fixes for org

10 years agoLocalize two global states using overlay properties
Leo Liu [Mon, 21 Apr 2014 05:06:50 +0000 (13:06 +0800)]
Localize two global states using overlay properties

1. replace variable easy-kill-mark with overlay property mark
2. replace variable easy-kill-append with overlay property append

10 years agoAdd tests and enable travis-ci
Leo Liu [Mon, 21 Apr 2014 03:31:08 +0000 (11:31 +0800)]
Add tests and enable travis-ci

10 years agoSupport Org mode with list-wise +/- and sexp selection
Leo Liu [Sun, 20 Apr 2014 23:59:28 +0000 (07:59 +0800)]
Support Org mode with list-wise +/- and sexp selection

Make easy-kill-thing-handler generic for dispatching.

10 years ago[gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:50:20 +0000 (17:50 +0200)]
[gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.

Omission from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo int] Fix bug: On -l/--infile, don't set :last-mover.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:47:51 +0000 (17:47 +0200)]
[gnugo int] Fix bug: On -l/--infile, don't set :last-mover.

Omission from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years ago[gnugo] On SGF load, leave cursor at last user board position.
Thien-Thi Nguyen [Sun, 20 Apr 2014 15:00:24 +0000 (17:00 +0200)]
[gnugo] On SGF load, leave cursor at last user board position.

* packages/gnugo/gnugo.el (gnugo-move-history):
Take optional second arg COLOR.
(gnugo-move-history remem): New internal func.
(gnugo-move-history pretty): New internal func.
(gnugo-move-history next): Use ‘remem’, ‘pretty’.
(gnugo-move-history): If RSEL is ‘bpos’, return
the position of the last stone placed by COLOR.
(gnugo-read-sgf-file): Set :last-user-bpos.
(gnugo): After refresh, prefer :last-user-bpos
to :center-position for cursor position.

10 years ago[gnugo int] Add abstraction: gnugo--prop<-color
Thien-Thi Nguyen [Sun, 20 Apr 2014 11:09:48 +0000 (13:09 +0200)]
[gnugo int] Add abstraction: gnugo--prop<-color

* packages/gnugo/gnugo.el (gnugo--prop<-color): New defsubst.
(gnugo-push-move, gnugo-okay): Use ‘gnugo--prop<-color’.

10 years agoMake digit key 0 shrink selection to its initial size
Leo Liu [Sun, 20 Apr 2014 01:48:53 +0000 (09:48 +0800)]
Make digit key 0 shrink selection to its initial size

10 years agoAdd wrappers for thingatpt.el for better code organisation
Leo Liu [Sun, 20 Apr 2014 01:10:50 +0000 (09:10 +0800)]
Add wrappers for thingatpt.el for better code organisation

10 years ago[gnugo int] Declare ‘lexical-binding: t’.
Thien-Thi Nguyen [Sat, 19 Apr 2014 18:44:04 +0000 (20:44 +0200)]
[gnugo int] Declare ‘lexical-binding: t’.

* packages/gnugo/gnugo.el: ...here, in first-line comment.

10 years ago[gnugo] Fix bug: Ensure gametree sync for -l/--infile.
Thien-Thi Nguyen [Sat, 19 Apr 2014 18:31:19 +0000 (20:31 +0200)]
[gnugo] Fix bug: Ensure gametree sync for -l/--infile.

Previously, specifying ‘--infile FILENAME’ (or ‘-l FILENAME’)
would result in a degenerate (root-node only) :sgf-gametree.
Incidentally, the "don't snoop" part of this change removes
the last remaining barrier to clean ‘lexical-binding: t’.

* packages/gnugo/gnugo.el (gnugo): Rewrite docstring;
parse user-specified command-line arguments;
don't snoop "--boardsize", "--handicap", "--komi";
instead, defer until subprocess available and then query;
rewrite kick args to segregate/prioritize "--infile", "-l";
save filename; when filename specified, expand it and
pass to ‘gnugo-read-sgf-file’ instead of constructing
the degenerate gametree; combine ‘gnugo--SZ!’ call with
aforementioned ‘board-size’, ‘handicap’, ‘komi’ mining
and do only for degenerate gametree construction.

10 years ago[gnugo int] Couple :center-position and :SZ jamming.
Thien-Thi Nguyen [Sat, 19 Apr 2014 17:35:27 +0000 (19:35 +0200)]
[gnugo int] Couple :center-position and :SZ jamming.

* packages/gnugo/gnugo.el (gnugo--SZ!):
Convert to ‘defun’; also compute/assign :center-position.
(gnugo): Don't compute :center-position explicitly,
but do move point to it, after the refresh.

10 years ago[gnugo int] Decruft: Don't set provisional :last-user-bpos.
Thien-Thi Nguyen [Sat, 19 Apr 2014 17:29:58 +0000 (19:29 +0200)]
[gnugo int] Decruft: Don't set provisional :last-user-bpos.

* packages/gnugo/gnugo.el (gnugo):
...here, as it does not make sense.

10 years ago[gnugo int] Add abstraction: gnugo--nquery
Thien-Thi Nguyen [Sat, 19 Apr 2014 16:45:45 +0000 (18:45 +0200)]
[gnugo int] Add abstraction: gnugo--nquery

* packages/gnugo/gnugo.el (gnugo--nquery): New func.
(gnugo): Use ‘gnugo--nquery’.
(:gnugo-gtp-command-spec): Likewise.

10 years ago[gnugo int] Move some prop jamming to ‘gnugo-board-mode’.
Thien-Thi Nguyen [Fri, 18 Apr 2014 11:34:25 +0000 (13:34 +0200)]
[gnugo int] Move some prop jamming to ‘gnugo-board-mode’.

* packages/gnugo/gnugo.el (gnugo-board-mode):
Move to here the setting of properties
:default-highlight-last-move-spec,
:highlight-last-move-spec, :paren-ov, :mul...
(gnugo): ...from here.

10 years ago[gnugo int] Use functional style more.
Thien-Thi Nguyen [Fri, 18 Apr 2014 10:26:44 +0000 (12:26 +0200)]
[gnugo int] Use functional style more.

* packages/gnugo/gnugo.el (gnugo):
Pass ‘gnugo--plant-and-climb’ rv to ‘gnugo--root-node’.

10 years ago[gnugo int] Decruft: Don't stash :proc-args.
Thien-Thi Nguyen [Fri, 18 Apr 2014 09:50:14 +0000 (11:50 +0200)]
[gnugo int] Decruft: Don't stash :proc-args.

* packages/gnugo/gnugo.el (gnugo): ...here.

10 years agoada-mode 5.1.3, wisi 1.0.4
Stephen Leake [Sat, 19 Apr 2014 13:54:29 +0000 (08:54 -0500)]
ada-mode 5.1.3, wisi 1.0.4

10 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
Stephen Leake [Sat, 19 Apr 2014 13:53:28 +0000 (08:53 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/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 agoFix #15: Make `M-w l' in strings save to clipboard
Leo Liu [Wed, 16 Apr 2014 18:16:02 +0000 (02:16 +0800)]
Fix #15: Make `M-w l' in strings save to clipboard

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 agoNew command easy-kill-exchange-point-and-mark
Leo Liu [Wed, 16 Apr 2014 02:25:47 +0000 (10:25 +0800)]
New command easy-kill-exchange-point-and-mark

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 agoStricter check on bounds of list in strings
Leo Liu [Tue, 15 Apr 2014 15:21:53 +0000 (23:21 +0800)]
Stricter check on bounds of list in strings

When in a string, (bounds-of-thing-at-point 'list) may return a
boundary outside of the string.

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 agoImprove last change for easy-kill-thing-forward
Leo Liu [Tue, 15 Apr 2014 10:17:43 +0000 (18:17 +0800)]
Improve last change for easy-kill-thing-forward

10 years agoFor #14: Treat strings like lists
Leo Liu [Tue, 15 Apr 2014 09:17:16 +0000 (17:17 +0800)]
For #14: Treat strings like lists

When inside a string and no enclosing list at point, treat the whole
string as the list.

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 agoTeach easy-kill-help to handle old format of easy-kill-alist
Leo Liu [Mon, 14 Apr 2014 04:10:09 +0000 (12:10 +0800)]
Teach easy-kill-help to handle old format of easy-kill-alist

Also enhance it to handle long thing names and missing append
separator.