Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9c1cb8d5
Commit
9c1cb8d5
authored
Oct 26, 2016
by
Stefan Monnier
Browse files
* lisp/subr.el (set-transient-map): Exit for unbound events (bug#24755).
parent
9c247d20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/subr.el
lisp/subr.el
+4
-2
No files found.
lisp/subr.el
View file @
9c1cb8d5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment