summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2004-10-11 22:02:16 +0000
committerKim F. Storm <storm@cua.dk>2004-10-11 22:02:16 +0000
commit18c2e7918851db603d60a4d77b2716a49cda624b (patch)
treefb8b40d1c8bb53202c88359b79a21e7ea36658e9
parent5a484642e5f86a02ed8d574f7697579fd68b1ee5 (diff)
downloademacs-18c2e7918851db603d60a4d77b2716a49cda624b.tar.gz
emacs-18c2e7918851db603d60a4d77b2716a49cda624b.tar.bz2
emacs-18c2e7918851db603d60a4d77b2716a49cda624b.zip
(substitute-key-definition): Mention command remapping in doc string.
-rw-r--r--lisp/subr.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 17f8bc81ccc..3c4f870918e 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -383,7 +383,10 @@ but optional second arg NODIGITS non-nil treats them like other chars."
"Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF.
In other words, OLDDEF is replaced with NEWDEF where ever it appears.
Alternatively, if optional fourth argument OLDMAP is specified, we redefine
-in KEYMAP as NEWDEF those keys which are defined as OLDDEF in OLDMAP."
+in KEYMAP as NEWDEF those keys which are defined as OLDDEF in OLDMAP.
+
+For most uses, it is simpler and safer to use command remappping like this:
+ \(define-key KEYMAP [remap OLDDEF] NEWDEF)"
;; Don't document PREFIX in the doc string because we don't want to
;; advertise it. It's meant for recursive calls only. Here's its
;; meaning