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

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

bug#9293:


From: Stefan Kangas
Subject: bug#9293:
Date: Thu, 12 Nov 2020 19:28:16 -0500

Lars Ingebrigtsen <larsi@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





reply via email to

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