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

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

[nongnu] elpa/inf-clojure 15963ca 162/313: Trim the string before checki


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure 15963ca 162/313: Trim the string before checking nil
Date: Wed, 11 Aug 2021 10:00:07 -0400 (EDT)

branch: elpa/inf-clojure
commit 15963caac5791c2e9145cc99e4db8576807eb0ec
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>

    Trim the string before checking nil
---
 inf-clojure.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index 38ff07c..be5bd67 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -961,7 +961,7 @@ in case this is not nil." )
 
 (defun inf-clojure--log-string (string &optional tag)
   "Log STRING to file, according to `inf-clojure-log-response'.
-The optional TYPE will be converted to string and printed before
+The optional TAG will be converted to string and printed before
 STRING if present."
   (when inf-clojure-log-activity
     (write-region (concat "\n"
@@ -1062,9 +1062,9 @@ for evaluation, therefore FORM should not include it."
 (defun inf-clojure--some-response-p (proc form)
   "Return true iff PROC's response after evaluating FORM is not nil."
   (inf-clojure--process-response-match-p
-                  (lambda (string)
-                    (not (inf-clojure--nil-string-match-p string)))
-                  proc form))
+   (lambda (string)
+     (not (inf-clojure--nil-string-match-p (string-trim string))))
+   proc form))
 
 ;;;; Commands
 ;;;; ========



reply via email to

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