[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo 981d75e 341/357: [gnugo] Fix bug: Don't clobber d
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo 981d75e 341/357: [gnugo] Fix bug: Don't clobber dead-group indication on refresh. |
Date: |
Sun, 29 Nov 2020 14:51:53 -0500 (EST) |
branch: externals/gnugo
commit 981d75e7b922562e3b597e7baabe84d45d93b3d5
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[gnugo] Fix bug: Don't clobber dead-group indication on refresh.
Previously, when in game-over and w/ Gnugo Image Display mode
enabled, ‘C-u C-l’ would clobber the overlays used to indicate
stones in a dead group, and the only way revive the indication
would be to toggle Gnugo Image Display mode. With this change,
dead-group indication persists ‘C-u C-l’.
* packages/gnugo/gnugo.el (gnugo-image-display-mode):
Call ‘gnugo-refresh’ w/ arg NOCACHE ‘t’;
move dead-group overlays deletion from here...
(gnugo-refresh): ...to here; conditionalize on NOCACHE.
---
gnugo.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnugo.el b/gnugo.el
index 91460765..1503f72 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1033,6 +1033,10 @@ its move."
(inhibit-read-only t)
window last)
(when (and nocache (not (gnugo-get :waiting)))
+ ;; (search-forward "pall of death")
+ (dolist (group (gnugo-aqr 'dead game-over))
+ (mapc 'delete-overlay (cdar group))
+ (setcdr (car group) nil))
(gnugo-propertize-board-buffer))
;; last move
(when move
@@ -1927,11 +1931,7 @@ See function `display-images-p' and variable
`gnugo-xpms'."
(gnugo-get :imul)
'(1 . 1)))
(gnugo-put :display-using-images bool)
- ;; a kludge to be reworked another time perhaps by another gnugo.el
lover
- (dolist (group (gnugo-aqr 'dead (gnugo-get :game-over)))
- (mapc 'delete-overlay (cdar group))
- (setcdr (car group) nil))
- (save-excursion (gnugo-refresh))))))
+ (save-excursion (gnugo-refresh t))))))
(defsubst gnugo--node-with-played-stone (pos &optional noerror)
(car (gnugo--mem-with-played-stone pos noerror)))
- [elpa] externals/gnugo f102d7f 240/357: [gnugo] Allow user to move for GNU Go., (continued)
- [elpa] externals/gnugo f102d7f 240/357: [gnugo] Allow user to move for GNU Go., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 9969838 260/357: [gnugo int] Drop abstractions: gnugo--{ERR-wait, gate-game-over}, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b9fa668 265/357: [gnugo int] Drop redundant ‘gnugo-gate’ calls., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo a766f0c 282/357: [gnugo] Replace ‘gnugo-toggle-grid’ w/ ‘gnugo-grid-mode’., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 4028102 271/357: [gnugo] Make climb-to-root "GNU Go to play" reaction customizable., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 46eec46 285/357: [gnugo int] Simplify COND expression., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo eaae57d 324/357: [gnugo int] Add Juanma Barranquero to THANKS; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo bb986d7 323/357: [gnugo] Release: 3.0.2, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 64bd753 327/357: [gnugo int] Simplify SGF-write subroutine., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c6eb3d1 325/357: [gnugo maint] Add people from ttn-pers-elisp THANKS file; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 981d75e 341/357: [gnugo] Fix bug: Don't clobber dead-group indication on refresh.,
Stefan Monnier <=
- [elpa] externals/gnugo e4344ac 350/357: [gnugo] Release: 3.1.0, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo af82527 356/357: [gnugo] Release: 3.1.1, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 53da06f 329/357: [gnugo] Make ‘gnugo-comment’ fall back to root node., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 781a385 332/357: [gnugo] Drop trailing fullstop for "... done" messages., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c5ef13d 334/357: [gnugo] Make ‘gnugo-goto-pos’ return buffer position., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 6170d2a 333/357: [gnugo] Make ‘C-c C-p’ output more spacious., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 0320a5c 335/357: [gnugo int] Decruft: Don't bother w/ ‘group’ text property., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 8123275 338/357: [gnugo] Drop trailing fullstop in animation message., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 08f11af 339/357: [gnugo int] Incorporate ‘gnugo-toggle-image-display’ into unique caller., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 1e01c65 340/357: [gnugo] When sorry, say "Sorry" first., Stefan Monnier, 2020/11/29