@@ -940,7 +940,7 @@ prefix argument PROMPT-FOR-SYMBOL, it prompts for a symbol name."
940
940
; ; Originally from:
941
941
; ; https://github.com/glycerine/lush2/blob/master/lush2/etc/lush.el#L287
942
942
(defun inf-clojure-results-from-process (process command &optional beg-string end-string )
943
- " Send COMMAND to PROCESS.
943
+ " Send to PROCESS the given COMMAND .
944
944
Return the result of COMMAND starting with BEG-STRING and ending
945
945
with END-STRING if non-nil. If BEG-STRING is nil, the result
946
946
string will start from (point) in the results buffer. If
@@ -978,7 +978,8 @@ the results buffer. It cuts out the output from
978
978
See variable `inf-clojure-arglists-form' ."
979
979
(let* ((arglists-snippet (format (inf-clojure-arglists-form) fn))
980
980
(arglists-result (inf-clojure-results-from-process (inf-clojure-proc) arglists-snippet))
981
- (arglists-data (when arglists-result (read arglists-result))))
981
+ ; ; The following reads the first LISP expression from the string
982
+ (arglists-data (when arglists-result (ignore-errors (read arglists-result)))))
982
983
(cond
983
984
((null arglists-data) nil )
984
985
((stringp arglists-data) arglists-data)
@@ -1229,7 +1230,8 @@ to suppress the usage of the target buffer discovery logic."
1229
1230
" Return MATCH-P on the result of sending FORM to PROC.
1230
1231
Note that this function will add a \n to the end of the string
1231
1232
for evaluation, therefore FORM should not include it."
1232
- (funcall match-p (inf-clojure-results-from-process proc form nil )))
1233
+ (when-let* ((response (inf-clojure-results-from-process proc form)))
1234
+ (funcall match-p response)))
1233
1235
1234
1236
; ;;; Lumo
1235
1237
; ;;; ====
0 commit comments