From: Lars Magne Ingebrigtsen Date: Thu, 6 Oct 2011 19:15:19 +0000 (+0200) Subject: (define-key-after): Clarify that the function is not useful for non-menu keymaps. X-Git-Tag: emacs-pretest-24.0.91~196 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0181e1939ea39ceaf54e4cfd95858a5fcfb4f0c7;p=emacs.git (define-key-after): Clarify that the function is not useful for non-menu keymaps. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e9217fbe8ee..13bbd3cf600 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-10-06 Lars Magne Ingebrigtsen + * 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 diff --git a/lisp/subr.el b/lisp/subr.el index 24e020acf09..05ac198dd13 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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)))