From 0181e1939ea39ceaf54e4cfd95858a5fcfb4f0c7 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Thu, 6 Oct 2011 21:15:19 +0200 Subject: [PATCH] (define-key-after): Clarify that the function is not useful for non-menu keymaps. --- lisp/ChangeLog | 3 +++ lisp/subr.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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))) -- 2.39.2