changeset 57438:0326440c511a

(substitute-key-definition): Mention command remapping in doc string.
author Kim F. Storm <storm@cua.dk>
date Mon, 11 Oct 2004 22:02:16 +0000
parents 8fb43e06b64f
children e12200cc9b00
files lisp/subr.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Mon Oct 11 22:01:28 2004 +0000
+++ b/lisp/subr.el	Mon Oct 11 22:02:16 2004 +0000
@@ -383,7 +383,10 @@
   "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