We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fe0803 commit d188986Copy full SHA for d188986
le-lisp.el
@@ -51,12 +51,11 @@
51
(with-current-buffer (process-buffer (lispy--cl-process))
52
(sly-eval `(slynk:eval-and-grab-output ,str)))
53
(slime-eval `(swank:eval-and-grab-output ,str)))))
54
- (if (equal (car result) "")
55
- (cadr result)
56
- (concat (propertize (car result)
57
- 'face 'font-lock-string-face)
58
- "\n\n"
59
- (cadr result)))))
+ (pcase result
+ (`("" "") "(ok)")
+ (`("" ,val) val)
+ (`(,out ,val)
+ (concat (propertize (string-trim-left out) 'face 'font-lock-string-face) "\n\n" val)))))
60
61
(defun lispy--cl-process ()
62
(unless (lispy--use-sly-p)
0 commit comments