projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c247d2
)
* lisp/subr.el (set-transient-map): Exit for unbound events (bug#24755).
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 26 Oct 2016 19:29:02 +0000
(15:29 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Wed, 26 Oct 2016 19:29:02 +0000
(15:29 -0400)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 573f238f7436adfd29cfb30e7a683d8116b88128..07909b894f525f062a0b264fd98d6115331e90b6 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-4507,8
+4507,10
@@
to deactivate this transient map, regardless of KEEP-PRED."
;; exit C-u.
t)
((eq t keep-pred)
- (eq this-command
- (lookup-key map (this-command-keys-vector))))
+ (let ((mc (lookup-key map (this-command-keys-vector))))
+ ;; If the key is unbound `this-command` is
+ ;; nil and so is `mc`.
+ (and mc (eq this-command mc))))
(t (funcall keep-pred)))
(funcall exitfun)))))
(add-hook 'pre-command-hook clearfun)