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
0181e193
Commit
0181e193
authored
Oct 06, 2011
by
Lars Magne Ingebrigtsen
Browse files
(define-key-after): Clarify that the function is not useful for non-menu keymaps.
parent
6d823bb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/subr.el
lisp/subr.el
+2
-1
No files found.
lisp/ChangeLog
View file @
0181e193
2011-10-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
* subr.el (define-key-after): Clarify that the function is not
useful for non-menu keymaps.
* progmodes/gdb-mi.el (gdb): Fix typo in doc string.
2011-10-06 Thierry Volpiatto <thierry.volpiatto@gmail.com>
...
...
lisp/subr.el
View file @
0181e193
...
...
@@ -552,7 +552,8 @@ AFTER should be a single event type--a symbol or a character, not a sequence.
Bindings are always added before any inherited map.
The order of bindings in a keymap matters when it is used as a menu."
The order of bindings in a keymap only matters when it is used as
a menu, so this function is not useful for non-menu keymaps."
(
unless
after
(
setq
after
t
))
(
or
(
keymapp
keymap
)
(
signal
'wrong-type-argument
(
list
'keymapp
keymap
)))
...
...
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