GNU bug report logs - #6882
24.0.50; <PREFIX KEY> C-h does not show remap bindings

Previous Next

Package: emacs;

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

Date: Wed, 18 Aug 2010 18:07:01 UTC

Severity: normal

Merged with 8350, 8351

Found in version 24.0.50

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6882 in the body.
You can then email your comments to 6882 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6882; Package emacs. (Wed, 18 Aug 2010 18:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 18 Aug 2010 18:07:01 GMT) Full text and rfc822 format available.

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; <PREFIX KEY> C-h does not show remap bindings
Date: Wed, 18 Aug 2010 11:06:20 -0700
emacs -Q
 
(define-key ctl-x-map "p" bookmark-map)
(defvar foo-mode-map (make-sparse-keymap) "")
(define-minor-mode foo-mode "..." nil " FOO")
(define-key bookmark-map "3" 'forward-char)
(define-key bookmark-map "4" 'previous-line)
(define-key foo-mode-map [remap forward-char] 'forward-line)
(define-key foo-mode-map "\C-xp4" 'next-line)
 
M-x foo-mode
 
C-h k C-x p 3  ; forward-line (correct)
C-h k C-x p 4  ; next-line    (correct)
 
C-x p C-h      ; incomplete - `C-x p 3' is not listed
 
The `C-x p 4' binding in `foo-mode-map' is listed by `C-x p C-h', but
there is no binding listed in `foo-mode-map' for the remapped command
`forward-char'.  You should either see a `C-x p 3' or (more precisely) a
<remap forward-char> binding listed in `foo-mode-map'.  Better would be
to see both.
 
You will perhaps argue that command `forward-line' is not actually bound
to `3' on the prefix key `C-x p'.  But from a user perspective it can be
argued that it is.  When you do `C-h k C-x p 3', for example, the output
says:
 
  "C-x p 3 runs the command forward-line...
   It is bound to C-f, C-x p 3."
 
That second line is a lie - the command is not actually bound to `C-x p
3'.  But it is a useful lie.  To be correct, we would say "It is bound
to C-f, <remap forward-char>."  But giving the resulting key is helpful.
 
For both `C-h k' and <PREFIX KEY> C-h, the most helpful might be to show
both <remap forward-char> and `C-x p 3'.
 
 
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-08-16 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 





Forcibly Merged 6882 8351. Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Mon, 28 Mar 2011 14:15:02 GMT) Full text and rfc822 format available.

Forcibly Merged 6882 8350 8351. Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Mon, 28 Mar 2011 14:23:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 8350 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sun, 29 May 2011 19:02:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 27 Jun 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 46 days ago.

Previous Next


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