[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 49/51: [gnugo] Rename var to ‘gnugo-inhibit-refresh’.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] 49/51: [gnugo] Rename var to ‘gnugo-inhibit-refresh’. |
Date: |
Mon, 24 Feb 2014 12:30:29 +0000 |
ttn pushed a commit to branch master
in repository elpa.
commit f8c4bb41ca5fb4e8c55985a9f7e53c9391739796
Author: Thien-Thi Nguyen <address@hidden>
Date: Mon Feb 24 13:06:53 2014 +0100
[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.
---
packages/gnugo/gnugo.el | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index 1dc73ee..3d41764 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/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] 21/51: [gnugo gtp int] Use :post-thunk instead of :post-hook., (continued)
- [elpa] 21/51: [gnugo gtp int] Use :post-thunk instead of :post-hook., Thien-Thi Nguyen, 2014/02/24
- [elpa] 31/51: [gnugo int] Add abstraction: gnugo--unclose-game, Thien-Thi Nguyen, 2014/02/24
- [elpa] 45/51: [gnugo] New command: ‘ A’ (gnugo-switch-to-another), Thien-Thi Nguyen, 2014/02/24
- [elpa] 42/51: [gnugo int] Use internal macros more., Thien-Thi Nguyen, 2014/02/24
- [elpa] 46/51: [gnugo] New command: ‘ _’ and ‘M-_’ (gnugo-boss-is-near), Thien-Thi Nguyen, 2014/02/24
- [elpa] 43/51: [gnugo maint] Update HACKING; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 50/51: [gnugo maint] Update NEWS, HACKING; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 41/51: [gnugo] Make proc-status change mode-line elem more informative., Thien-Thi Nguyen, 2014/02/24
- [elpa] 47/51: [gnugo maint] Update NEWS; nfc., Thien-Thi Nguyen, 2014/02/24
- [elpa] 48/51: [gnugo] Fix bug: Compute grid spacing using offset math., Thien-Thi Nguyen, 2014/02/24
- [elpa] 49/51: [gnugo] Rename var to ‘gnugo-inhibit-refresh’.,
Thien-Thi Nguyen <=
- [elpa] 51/51: [gnugo] Release: 2.3.0, Thien-Thi Nguyen, 2014/02/24
- [elpa] 44/51: [gnugo] Bind ‘DEL’ t o ‘gnugo-undo-two-moves’., Thien-Thi Nguyen, 2014/02/24