summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2008-06-08 14:10:50 +0000
committerAndreas Schwab <schwab@suse.de>2008-06-08 14:10:50 +0000
commit24f7ee4cee91afc419cf916859da3041b6086562 (patch)
tree7cde6fa40d41481881576876bff401f98cd39af2 /lisp/minibuffer.el
parent2bd0c2e02fb6aa129aff58ed78ad428d77f364ce (diff)
downloademacs-24f7ee4cee91afc419cf916859da3041b6086562.tar.gz
(minibuffer-message): Bind inhibit-quit around
sit-for.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r--lisp/minibuffer.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 2582afab3c1..2be39d23dde 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -281,7 +281,10 @@ If ARGS are provided, then pass MESSAGE through `format'."
(copy-sequence message)
(concat " [" message "]")))
(when args (setq message (apply 'format message args)))
- (let ((ol (make-overlay (point-max) (point-max) nil t t)))
+ (let ((ol (make-overlay (point-max) (point-max) nil t t))
+ ;; A quit during sit-for should be (re-)read as
+ ;; abort-recursive-edit
+ (inhibit-quit t))
(unwind-protect
(progn
(unless (zerop (length message))