[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/sly 070b1db 2/7: Close #303: Protect sly-eval against
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/sly 070b1db 2/7: Close #303: Protect sly-eval against callers that set inhibit-quit to t |
Date: |
Sat, 21 Nov 2020 01:34:52 -0500 (EST) |
branch: externals/sly
commit 070b1dbc60d399abb9100f73f00a077ce63b07cf
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Close #303: Protect sly-eval against callers that set inhibit-quit to t
* sly.el (sly-eval): Set inhibit-quit to t.
---
sly.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/sly.el b/sly.el
index 741c6d9..f6be037 100644
--- a/sly.el
+++ b/sly.el
@@ -2400,8 +2400,17 @@ wants to input, and return CANCEL-ON-INPUT-RETVAL."
(throw catch-tag
(list #'error "Synchronous Lisp Evaluation
aborted")))))
(cond (cancel-on-input
- (while (sit-for 30))
- (setq cancelled t)
+ ;; Setting `inhibit-quit' to t helps with
+ ;; callers that wrap us in `while-no-input',
+ ;; like `fido-mode' and Helm. It doesn't seem
+ ;; to create any specific problems, since
+ ;; `sit-for' exits immediately given input
+ ;; anyway. This include the C-g input, and
+ ;; thus even with `inhibit-quit' set to t, quit
+ ;; happens immediately.
+ (unwind-protect
+ (let ((inhibit-quit t)) (while (sit-for 30)))
+ (setq cancelled t))
(funcall check-conn))
(t
(while t
- [nongnu] externals/sly updated (d12c4cd -> 3f72671), Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 5114fc2 1/7: Fix #346: Fix error when complex comint-preoutput-filter-functions, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 773595a 3/7: Play nice with latest version of fido-mode, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 070b1db 2/7: Close #303: Protect sly-eval against callers that set inhibit-quit to t,
Stefan Monnier <=
- [nongnu] externals/sly deafdc6 4/7: Close #273: Discuss completion UIs and mention Helm-SLY in README, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 4ced33c 6/7: Close #264: Mention some more additional contribs in README.md, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 3f72671 7/7: Close #378: new sly-connection-poll-interval user option, Stefan Monnier, 2020/11/21
- [nongnu] externals/sly 6d6e8fb 5/7: Fix #370: Survive propertized strings read from minibuffer, Stefan Monnier, 2020/11/21