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

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

[nongnu] elpa/inf-clojure 4e96e93 147/313: Fix a bug causing read to out


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure 4e96e93 147/313: Fix a bug causing read to output for expression
Date: Wed, 11 Aug 2021 10:00:04 -0400 (EDT)

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

    Fix a bug causing read to output for expression
---
 CHANGELOG.md   | 4 ++++
 inf-clojure.el | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2e8e2a..e9c035b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
 
 ## master (unreleased)
 
+### Bugs Fixed
+
+* [#77](https://github.com/clojure-emacs/inf-clojure/pull/77): Fix request 
"Eval expression:" if arglists return is `nil`.
+
 ## 2.0.0 (2017-05-01)
 
 ### New Features
diff --git a/inf-clojure.el b/inf-clojure.el
index 88a9d6a..2f32015 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -978,7 +978,7 @@ the results buffer.  It cuts out the output from
 See variable `inf-clojure-arglists-form'."
   (let* ((arglists-snippet (format (inf-clojure-arglists-form) fn))
          (arglists-result (inf-clojure-results-from-process (inf-clojure-proc) 
arglists-snippet))
-         (arglists-data (read arglists-result)))
+         (arglists-data (when arglists-result (read arglists-result))))
     (cond
      ((null arglists-data) nil)
      ((stringp arglists-data) arglists-data)



reply via email to

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