GNU bug report logs -
#34080
27.0.50, 26.1; undocumented key bindings for *vc-diff*
Previous Next
Reported by: Van L <van <at> scratch.space>
Date: Tue, 15 Jan 2019 05:31:01 UTC
Severity: wishlist
Found in version 27.0.50
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Full log
Message #62 received at 34080 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Wed 09 Jul 2025 at 05:47pm -04, Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
>> - that diff-mode-shared-map is the parent of diff-minor-mode-map, not
>> diff-mode-map, d'oh
>> - that diff-minor-mode is the mechanism by which the keys are made
>> available when the buffer is read only.
>>
>> What do you think about replacing activating a minor mode with just
>> switching the major mode map?
>
> Fine by me.
>
>> So far as I can tell the disadvantage would be repeating keymap
>> definitions, and the advantage would be more standardised
>> *Help* output.
>
> We definitely do not want to repeat keymap definitions (users may have
> their own and may want to change the ones we provide).
>
> But you can do things like
>
> (use-local-map (make-composed-map diff-mode-shared-map diff-mode-map))
I don't think getting users to repeat their configuration for a few
different maps is too bad but certainly if it can be done with composed
maps then that's better. I'll investigate, thanks!
--
Sean Whitton
This bug report was last modified 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.