emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

substitute-command-keys no good for [remap ...]


From: Drew Adams
Subject: substitute-command-keys no good for [remap ...]
Date: Thu, 8 Sep 2005 19:57:23 -0700

emacs -q

(define-key global-map [remap forward-char] 'my-forward-char)
(substitute-command-keys "Use \\[my-forward-char] to move forward")

gives this: "Use <remap> <forward-char> to move forward".

The [remap ...] "special 'key sequence'" (as it's called in the Elisp
manual) is not what `substitute-command-keys' should show a user as the
key sequence bound to the command. The ultimate, real (not "special
'key sequence'") should be shown.


In GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600)
 of 2005-06-26 on NONIQPC
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc
(3.3) --cflags -I../../jpeg-6b-3/include -I../../libpng-1.2.8/include -I../.
./tiff-3.6.1-2/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.2.2/incl
ude'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]