]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/keymaps.texi (Remapping Commands): Mention how to undo it.
authorGlenn Morris <rgm@gnu.org>
Fri, 18 Feb 2011 05:11:26 +0000 (21:11 -0800)
committerGlenn Morris <rgm@gnu.org>
Fri, 18 Feb 2011 05:11:26 +0000 (21:11 -0800)
doc/lispref/ChangeLog
doc/lispref/keymaps.texi

index 56f35ef32964a60f10efbe7e13196b3c2fe16013..664464acda2ca3854acd181bbdc5a44ff423f78b 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-18  Glenn Morris  <rgm@gnu.org>
+
+       * keymaps.texi (Remapping Commands): Mention how to undo it.
+
 2011-02-05  Chong Yidong  <cyd@stupidchicken.com>
 
        * commands.texi (Accessing Mouse): Note that a header line is not
index 1763f3936c94d9191210b94c82383243d2cdc82a..bc1937442f8422ab6772d21687caa8d35466696c 100644 (file)
@@ -1510,6 +1510,12 @@ does not have the effect of remapping @code{kill-line} into
 if an ordinary binding specifies @code{my-kill-line}, this keymap will
 remap it to @code{my-other-kill-line}.
 
+To undo the remapping of a command, remap it to @code{nil}; e.g.
+
+@smallexample
+(define-key my-mode-map [remap kill-line] nil)
+@end smallexample
+
 @defun command-remapping command &optional position keymaps
 This function returns the remapping for @var{command} (a symbol),
 given the current active keymaps.  If @var{command} is not remapped