Commit 0181e193 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(define-key-after): Clarify that the function is not useful for non-menu keymaps.

parent 6d823bb2
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>
......
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment