GNU bug report logs - #8350
24.0.50; wrong bindings for remapped keys

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 26 Mar 2011 20:04:01 UTC

Severity: normal

Merged with 6882, 8351

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; wrong bindings for remapped keys
Date: Sat, 26 Mar 2011 13:00:58 -0700
(define-key ctl-x-map "f" 'forward-char)
 
C-h w forward-char   (says that it is bound to C-x f)
 
(define-key ctl-x-map [remap forward-char] 'backward-char)
 
C-h w forward-char   (says that it is still bound to C-x f)
C-h w backward-char  (says that it is bound to C-x <remap>
                      <forward-char>)
 
(command-remapping 'forward-char nil (list ctl-x-map))
  => backward-char
 
C-x f                (moves forward, not backward a character;
                      `backward-char' is not invoked)
 
C-x C-h              (says C-x f is bound to `forward-char')
 
Looking at (elisp) Remapping Commands I do not see how/why this should
be.  Seems like this should just work (as the doc indicates).
 
 
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-03-21 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
 





This bug report was last modified 13 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.