From 18c2e7918851db603d60a4d77b2716a49cda624b Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 11 Oct 2004 22:02:16 +0000 Subject: [PATCH] (substitute-key-definition): Mention command remapping in doc string. --- lisp/subr.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.4.GIT