[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo e382633 190/357: [gnugo] Drop var: gnugo-inhibit-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo e382633 190/357: [gnugo] Drop var: gnugo-inhibit-refresh |
Date: |
Sun, 29 Nov 2020 14:51:19 -0500 (EST) |
branch: externals/gnugo
commit e3826336580dd4ebbbc1634f6dacd1f0e6d44244
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[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.
---
NEWS | 1 +
gnugo.el | 28 ++++++++--------------------
2 files changed, 9 insertions(+), 20 deletions(-)
diff --git a/NEWS b/NEWS
index 1b7ab98..a6be4b8 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ NB: "RCS: X..Y " means that the particular release includes
- ‘gnugo-move-history’ returns last two moves w/ RSEL ‘two’
- performance improvements
- of interest to hackers (see source, BI => backward incompatible)
+ - dropped var: ‘gnugo-inhibit-refresh’ (BI)
- ‘gnugo/sgf-read-file’ renamed to ‘gnugo/sgf-create’ and enhanced
- ‘:sgf-gametree’ internal representation inverted (BI)
- ‘gnugo-magic-undo’ handles SPEC ‘0’
diff --git a/gnugo.el b/gnugo.el
index 84620aa..4991040 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -108,13 +108,8 @@ http://www.gnu.org/software/gnugo")
(defvar gnugo-board-mode-hook nil
"Hook run when entering GNUGO Board mode.")
-(defvar gnugo-inhibit-refresh nil
- "Used in `gnugo-post-move-hook'.")
-
(defvar gnugo-post-move-hook nil
"Normal hook run after a move and before the board is refreshed.
-Hook functions can prevent the call to `gnugo-refresh' by evaluating:
- (setq gnugo-inhibit-refresh t)
Initially, when `run-hooks' is called, the current buffer is the GNUGO
Board buffer of the game. Hook functions that switch buffers must take
care not to call (directly or indirectly through some other function)
@@ -1566,11 +1561,9 @@ its move."
(gnugo-push-move (string= color (gnugo-get :user-color))
pos-or-pass)
(let ((buf (current-buffer)))
- (let (gnugo-inhibit-refresh)
- (run-hooks 'gnugo-post-move-hook)
- (unless gnugo-inhibit-refresh
- (with-current-buffer buf
- (gnugo-refresh))))))))))
+ (run-hooks 'gnugo-post-move-hook)
+ (with-current-buffer buf
+ (gnugo-refresh))))))))
(defun gnugo-get-move (color)
(gnugo-put :waiting color)
@@ -1615,12 +1608,9 @@ To start a game try M-x gnugo."
(let* ((buf (current-buffer))
(pos (gnugo-position)))
(gnugo-push-move t pos) ; value always nil for non-pass move
- (let (gnugo-inhibit-refresh)
- (run-hooks 'gnugo-post-move-hook)
- (unless gnugo-inhibit-refresh
- (with-current-buffer buf
- (gnugo-refresh))))
+ (run-hooks 'gnugo-post-move-hook)
(with-current-buffer buf
+ (gnugo-refresh)
(gnugo-get-move (gnugo-get :gnugo-color)))))
(defun gnugo-mouse-move (e)
@@ -1638,11 +1628,9 @@ To start a game try M-x gnugo."
(gnugo-gate t)
(let ((donep (gnugo-push-move t "PASS"))
(buf (current-buffer)))
- (let (gnugo-inhibit-refresh)
- (run-hooks 'gnugo-post-move-hook)
- (unless gnugo-inhibit-refresh
- (with-current-buffer buf
- (gnugo-refresh))))
+ (run-hooks 'gnugo-post-move-hook)
+ (with-current-buffer buf
+ (gnugo-refresh))
(unless donep
(with-current-buffer buf
(gnugo-get-move (gnugo-get :gnugo-color))))))
- [elpa] externals/gnugo d62412f 144/357: [gnugo int] Add abstraction: gnugo--move-to-bcol, (continued)
- [elpa] externals/gnugo d62412f 144/357: [gnugo int] Add abstraction: gnugo--move-to-bcol, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 4680536 143/357: [gnugo int] Fix bug: Unbreak SGF file output., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 806a2f2 133/357: [gnugo] Add some navigation commands for GNUGO Frolic mode., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c6795aa 140/357: [gnugo frolic int] Assign ‘pop’ rv to avoid byte-compiler warning., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 13c8f82 149/357: [gnugo frolic] Doc fix., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo de40b22 152/357: [gnugo int] Move vectorization into ‘gnugo--set-tree-ends’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo e8833a9 161/357: [gnugo int] Fix syntax error in ‘loop’ destructuring., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 3e3fbea 155/357: [gnugo sgf] Fix bug: Preserve whitespace for ‘text’ values., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 0f3f4b6 165/357: [gnugo int] Use ‘ignore’ to avoid byte-compiler warnings., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 082d56c 178/357: [gnugo int] Use ‘gnugo--decorate’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo e382633 190/357: [gnugo] Drop var: gnugo-inhibit-refresh,
Stefan Monnier <=
- [elpa] externals/gnugo dd6b6f8 186/357: [gnugo] New command: ‘C’ (gnugo-comment), Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo cba406b 176/357: [gnugo] Include root node in :sgf-gametree description., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 1ac646f 172/357: [gnugo] New command: ‘O’ (gnugo-okay), Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 3f13bbf 168/357: [gnugo] Make ‘=’ also display move number., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f3c90cd 187/357: [gnugo] Make ‘C-u F’ add the blurb as a comment to the last node., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo bcc912b 164/357: [gnugo frolic int] Add var selection to awakening parameterization., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 66c29d0 197/357: [gnugo int] Add abstraction: gnugo--gate-game-over, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5bbec0e 179/357: [gnugo int] Incorporate ‘gnugo-note’ into unique caller., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 82b6000 198/357: [gnugo] Mention ‘gnugo-frolic-mode-hook’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 32e8547 199/357: [gnugo int] Add abstraction: gnugo--user-play, Stefan Monnier, 2020/11/29