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

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

[elpa] externals/gnugo 9748703 060/357: [gnugo int] Elide single-use loc


From: Stefan Monnier
Subject: [elpa] externals/gnugo 9748703 060/357: [gnugo int] Elide single-use local var.
Date: Sun, 29 Nov 2020 14:50:48 -0500 (EST)

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

    [gnugo int] Elide single-use local var.
    
    Omission from 2014-03-06, "Streamline subproc (de-)marshalling".
    
    * gnugo.el (gnugo--q): ...here, for var ‘so-far’.
---
 gnugo.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index b578f24..1ece2ec 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -340,8 +340,8 @@ status of the command.  See also `gnugo-query'."
     (process-put proc :srs "")          ; synchronous return stash
     (set-process-filter
      proc (lambda (proc string)
-            (let* ((so-far (process-get proc :srs))
-                   (full   (concat so-far string)))
+            (let ((full (concat (process-get proc :srs)
+                                string)))
               (process-put proc :srs full)
               (unless (numberp (compare-strings
                                 full (max 0 (- (length full)



reply via email to

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