GNU bug report logs - #9293
say what they are shadowed by

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sat, 13 Aug 2011 13:06:02 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 9293 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Thu, 12 Nov 2020 19:28:16 -0500
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> So, here's the test case (since one wasn't given in the original bug
> report):
>
> C-x C-f file.tgz RET
> M-x view-mode RET
> C-h m
>
> Notice
>
> key             binding
> ---             -------
>
> 0 .. 9		digit-argument  (binding currently shadowed)
> e .. f		tar-extract  (binding currently shadowed)
>
> This is both confusing and...  wrong?
>
> `C-h c e' does say "e runs the command View-exit", but
> `C-h c f' says "f runs the command tar-extract".

I think there are two issues:

1. If you don't enable `view-mode', you will see that in `tar-mode-map'
   both `e' and `f' are bound to `tar-extract'.

   However, when you enable `view-mode', only `e' is shadowed.

> And all of keys `0' through `9' really do call `digit-argument', so that
> one is just totally wrong.

2. `0 .. 9' are technically shadowed, in the sense that there is a
   binding for them in an overriding keymap.  Only that in this case the
   binding in the other keymap is the exact same command.

So in conclusion the output here should probably be:

  0 .. 9	digit-argument
  e		tar-extract  (binding currently shadowed)
  f		tar-extract




This bug report was last modified 4 years and 239 days ago.

Previous Next


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