Skip to content

Commit d6293f9

Browse files
author
Max Mikhanosha
committed
Fix Emacs lockup if mouse clicking in REPL with REPL thread busy
1 parent f5085b7 commit d6293f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elisp/log4slime.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ argument, the parent effective log level (string)")
259259
"Wrapper around `slime-eval' that ignores errors on the lisp side"
260260
(when (log4slime-check-connection)
261261
;; I swear it something in slime-eval screws with point sometimes
262-
(save-excursion (slime-eval `(cl:ignore-errors ,form)))))
262+
(save-excursion
263+
(let ((slime-current-thread t))
264+
(slime-eval `(cl:ignore-errors ,form))))))
263265

264266
(defvar log4slime-goto-definition-window nil
265267
"Passed as WHERE to `slime-pop-to-location', can be 'WINDOW or 'FRAME too")

0 commit comments

Comments
 (0)