Skip to content

Commit 06fd624

Browse files
abo-abopapercatlol
authored andcommitted
le-lisp.el (lispy--eval-lisp): Don't use with-current-buffer for SLIME
The old code was messing up in case of `coalton-toplevel'.
1 parent 0a7d457 commit 06fd624

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

le-lisp.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
(defun lispy--eval-lisp (str)
4848
"Eval STR as Common Lisp code."
4949
(let* ((deactivate-mark nil)
50-
(result (with-current-buffer (process-buffer (lispy--cl-process))
51-
(if (lispy--use-sly-p)
52-
(sly-eval `(slynk:eval-and-grab-output ,str))
53-
(slime-eval `(swank:eval-and-grab-output ,str))))))
50+
(result (if (lispy--use-sly-p)
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)))))
5454
(if (equal (car result) "")
5555
(cadr result)
5656
(concat (propertize (car result)

0 commit comments

Comments
 (0)