emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnugo 5a201a8 286/357: [gnugo] Fix bug: For GTP "help C


From: Stefan Monnier
Subject: [elpa] externals/gnugo 5a201a8 286/357: [gnugo] Fix bug: For GTP "help COMMAND", leave point in right place.
Date: Sun, 29 Nov 2020 14:51:40 -0500 (EST)

branch: externals/gnugo
commit 5a201a84560e7fa77c3e3d5e9fa876ec280e70c6
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [gnugo] Fix bug: For GTP "help COMMAND", leave point in right place.
    
    * packages/gnugo/gnugo.el (:gnugo-gtp-command-spec help):
    When COMMANd is specified and found, use a marker to hold its
    position, and after moving point there, make it point nowhere.
---
 gnugo.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 4e8c275..e32f18a 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2827,8 +2827,9 @@ See `gnugo-board-mode' for a full list of commands."
                       (:discard (note "discards the output"))
                       (:message (note "displays the output in the echo 
area")))))
                 (when (eq sel cur)
-                  (setq found (match-beginning 0))))))
-          (cond (found (goto-char found))
+                  (setq found (make-marker))
+                  (set-marker found (match-beginning 0))))))
+          (cond (found (goto-char found) (set-marker found nil))
                 ((not sel))
                 (t (message "(no such command: %s)" sel)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]