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

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

[elpa] 01/02: [gnugo int] Elide single-use local var.


From: Thien-Thi Nguyen
Subject: [elpa] 01/02: [gnugo int] Elide single-use local var.
Date: Sun, 09 Mar 2014 09:37:01 +0000

ttn pushed a commit to branch master
in repository elpa.

commit 6ebb7339809932c46042cdac8258cfd3c391691e
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sat Mar 8 14:48:11 2014 +0100

    [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’.
---
 packages/gnugo/gnugo.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index b578f24..1ece2ec 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/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]