[Top][All Lists]

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

[elpa] externals/gnugo a3baa99 200/357: [gnugo int] Use ‘following-char

From: Stefan Monnier
Subject: [elpa] externals/gnugo a3baa99 200/357: [gnugo int] Use ‘following-char’ more.
Date: Sun, 29 Nov 2020 14:51:21 -0500 (EST)

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

    [gnugo int] Use ‘following-char’ more.
    * packages/gnugo/gnugo.el (gnugo-mouse-move):
    ...here w/ ‘memq’, instead of ‘looking-at’.
 gnugo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index f3952a6..43d5434 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1688,7 +1688,7 @@ To start a game try M-x gnugo."
   "Do `gnugo-move' at mouse location."
   (interactive "@e")
   (mouse-set-point e)
-  (when (looking-at "[.+]")
+  (when (memq (following-char) '(?. ?+))
 (defun gnugo-pass ()

reply via email to

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