[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo 02926a1 049/357: [gnugo] Rename var to ‘gnugo-in
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo 02926a1 049/357: [gnugo] Rename var to ‘gnugo-inhibit-refresh’. |
Date: |
Sun, 29 Nov 2020 14:50:45 -0500 (EST) |
branch: externals/gnugo
commit 02926a1d728a4366870d2e455a71faf5066c6a35
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[gnugo] Rename var to ‘gnugo-inhibit-refresh’.
* packages/gnugo/gnugo.el (gnugo-inhibit-refresh): New defvar.
(gnugo-post-move-hook): Update docstring.
(gnugo-get-move-insertion-filter, gnugo-move)
(gnugo-pass): Update refs.
---
gnugo.el | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/gnugo.el b/gnugo.el
index 1dc73ee..3d41764 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -103,10 +103,13 @@ 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 inhibit-gnugo-refresh t)
+ (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)
@@ -996,9 +999,9 @@ its move."
(gnugo-put :waitingp nil)
(gnugo-push-move nil pos-or-pass)
(let ((buf (current-buffer)))
- (let (inhibit-gnugo-refresh)
+ (let (gnugo-inhibit-refresh)
(run-hooks 'gnugo-post-move-hook)
- (unless inhibit-gnugo-refresh
+ (unless gnugo-inhibit-refresh
(with-current-buffer buf
(gnugo-refresh))))))))))
@@ -1044,9 +1047,9 @@ To start a game try M-x gnugo."
(unless (= ?= (aref accept 0))
(user-error "%s" accept))
(gnugo-push-move t pos) ; value always nil for non-pass move
- (let (inhibit-gnugo-refresh)
+ (let (gnugo-inhibit-refresh)
(run-hooks 'gnugo-post-move-hook)
- (unless inhibit-gnugo-refresh
+ (unless gnugo-inhibit-refresh
(with-current-buffer buf
(gnugo-refresh))))
(with-current-buffer buf
@@ -1071,9 +1074,9 @@ To start a game try M-x gnugo."
(user-error "%s" accept)))
(let ((donep (gnugo-push-move t "PASS"))
(buf (current-buffer)))
- (let (inhibit-gnugo-refresh)
+ (let (gnugo-inhibit-refresh)
(run-hooks 'gnugo-post-move-hook)
- (unless inhibit-gnugo-refresh
+ (unless gnugo-inhibit-refresh
(with-current-buffer buf
(gnugo-refresh))))
(unless donep
- [elpa] externals/gnugo a7dffa0 067/357: [gnugo maint] Update NEWS; nfc., (continued)
- [elpa] externals/gnugo a7dffa0 067/357: [gnugo maint] Update NEWS; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo d2b4549 068/357: [gnugo] Bind ‘M-u’ to ‘gnugo-undo-one-move’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f82c526 078/357: [gnugo int] Use ‘following-char’ instead of ‘char-after’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f29b22f 081/357: [gnugo int] Use ‘setq’ less., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 38137d3 079/357: [gnugo int] Cache gametree prop ‘:SZ’ as gnugo prop ‘:SZ’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo d6f3956 089/357: [gnugo int] Decruft: Infer MOVEP from PROPERTY., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5ca5b0a 097/357: [gnugo int] Add abstraction: gnugo--nodep, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo a86a897 013/357: [gnugo int] Use ‘redisplay’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 3063f95 041/357: [gnugo] Make proc-status change mode-line elem more informative., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c2f7717 053/357: [gnugo slog] Fix bug: Avoid ‘cl-lib’ funcs; use only macros., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 02926a1 049/357: [gnugo] Rename var to ‘gnugo-inhibit-refresh’.,
Stefan Monnier <=
- [elpa] externals/gnugo 5e4b5a8 051/357: [gnugo] Release: 2.3.0, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 400e27d 069/357: [gnugo int] Add abstraction: gnugo--who-is-who, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 3547cbe 080/357: [gnugo int] Add abstraction: gnugo--set-root-prop, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 11e545d 082/357: [gnugo int] Use ‘loop’ instead of ‘dolist’ + ‘destructuring-bind’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 5eeb99b 087/357: [gnugo int] Use ‘incf’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 7293802 088/357: [gnugo int] Use ‘setq’ less., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 35b1551 091/357: [gnugo int] Use ‘loop’ instead of ‘mapc’ + ‘apply’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b5990a0 085/357: [gnugo int] Use ‘gnugo-treeroot’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f9668f0 090/357: [gnugo int] Add abstraction: gnugo--blackp, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c164c40 092/357: [gnugo int] Add abstraction: gnugo--passp, Stefan Monnier, 2020/11/29