branch: elpa/inf-clojure commit 4e96e936a760c48d55f60b395a5ef65a69dd13cc Author: Andrea Richiardi <a.richiardi.w...@gmail.com> Commit: Bozhidar Batsov <bozhidar.bat...@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)