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

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

[elpa] externals/gnugo fee8b33 015/357: [gnugo int] Use ‘(split-string


From: Stefan Monnier
Subject: [elpa] externals/gnugo fee8b33 015/357: [gnugo int] Use ‘(split-string STR SEP t)’.
Date: Sun, 29 Nov 2020 14:50:37 -0500 (EST)

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

    [gnugo int] Use ‘(split-string STR SEP t)’.
    
    * packages/gnugo/gnugo.el (gnugo-animate-group): ...here,
    instead of manually deleting the empty strings
    returned from a two-arg call to ‘split-string’.
---
 gnugo.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index b3b3cdf..17cb428 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1050,10 +1050,7 @@ To start a game try M-x gnugo."
                    (error "No stone at %s" pos))))
     (message "Computing %s ... %s in group." command (length stones))
     (setplist (gnugo-f 'anim) nil)
-    (let* ((spec (let ((spec
-                        ;; `(split-string gnugo-animation-string "" t)'
-                        ;; works as well, for newer emacs versions
-                        (delete "" (split-string gnugo-animation-string ""))))
+    (let* ((spec (let ((spec (split-string gnugo-animation-string "" t)))
                    (cond ((gnugo-get :display-using-images)
                           (let* ((yin (get-text-property (point) 'gnugo-yin))
                                  (yang (gnugo-yang (char-after)))



reply via email to

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