aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/keymaps.texi
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2011-02-17 21:11:26 -0800
committerGlenn Morris <[email protected]>2011-02-17 21:11:26 -0800
commitdff9ac46596173b651941dc1b16c78b1a1ab11f1 (patch)
tree0b970c67fce2c7626e1539ca47e7882994fc017a /doc/lispref/keymaps.texi
parent41002397eec14de42b7786f4ecc195388d8cd309 (diff)
* doc/lispref/keymaps.texi (Remapping Commands): Mention how to undo it.
Diffstat (limited to 'doc/lispref/keymaps.texi')
-rw-r--r--doc/lispref/keymaps.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index 1763f3936c..bc1937442f 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