aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2016-04-08 14:02:24 -0400
committerStefan Monnier2016-04-08 14:02:24 -0400
commit5c288909b96452ed5d01befc8b624e94511620ed (patch)
treeda2162f99215fe05d064901089cf70554f671fdb /lisp
parenta75b9a6f2276a15a155660c99f7ff654190b7e9a (diff)
downloademacs-5c288909b96452ed5d01befc8b624e94511620ed.tar.gz
emacs-5c288909b96452ed5d01befc8b624e94511620ed.zip
* lisp/subr.el (read-key): Don't let the prompt linger (bug#22714)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index dde76916230..cbcc27baad1 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2086,6 +2086,10 @@ some sort of escape sequence, the ambiguity is resolved via `read-key-delay'."
2086 (aref keys 1) 2086 (aref keys 1)
2087 key))) 2087 key)))
2088 (cancel-timer timer) 2088 (cancel-timer timer)
2089 ;; For some reason, `read-key(-sequence)' leaves the prompt in the echo
2090 ;; area, whereas `read-event' seems to empty it just before returning
2091 ;; (bug#22714). So, let's mimick the behavior of `read-event'.
2092 (message nil)
2089 (use-global-map old-global-map)))) 2093 (use-global-map old-global-map))))
2090 2094
2091(defvar read-passwd-map 2095(defvar read-passwd-map