From dff9ac46596173b651941dc1b16c78b1a1ab11f1 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 17 Feb 2011 21:11:26 -0800 Subject: [PATCH] * doc/lispref/keymaps.texi (Remapping Commands): Mention how to undo it. --- doc/lispref/ChangeLog | 4 ++++ doc/lispref/keymaps.texi | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 56f35ef3296..664464acda2 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,7 @@ +2011-02-18 Glenn Morris + + * keymaps.texi (Remapping Commands): Mention how to undo it. + 2011-02-05 Chong Yidong * commands.texi (Accessing Mouse): Note that a header line is not diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 1763f3936c9..bc1937442f8 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi @@ -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 -- 2.39.2