[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tweak to key-description for menu bindings
From: |
David Kastrup |
Subject: |
Re: Tweak to key-description for menu bindings |
Date: |
Mon, 28 Feb 2005 13:55:30 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> David Kastrup <address@hidden> writes:
>
>> address@hidden (Kim F. Storm) writes:
>>
>>> It also improves handling of menu bar entries in two ways:
>>>
>>> 1) If menu-bar-mode is disabled, it doesn't mention menu bar bindings.
>>>
>>> 2) It pretty prints menu bar entries like this:
>>> e.g. "File Menu" rather than "<menu-bar> <file> <new-file>"
>>
>> Uh, how is it an improvement to leave off the "New file" information
>> from the menu?
>
> I have been looking further into "menu binding pretty-printing",
> and I agree that my previous approach was too narrow-minded.
>
> I now have a solution where key-description produces a real human
> readable text for menu bindings.
>
> For example,
>
> (key-description [menu-bar file new-file])
>
> now prints
>
> <menu-bar> <file> <new-file>
>
> whereas with my patch to key-description, it will print
>
> File=>New File...
>
> New:
> Options=>Mule (Multilingual Environment)=>Set Coding Systems=>For Next Command
>
>
> Shall I install this?
My vote is "yes". However, I would also want to suggest that such
pretty-printed key sequences can, as some sort of a general principle,
be passed to the kbd macro to make a target for define-key, so that
the developer can be spared having to switch on his brain as often as
possible. I don't know how feasible this is as kbd is a macro, and
the lookup could depend on the keymaps currently active or something.
But since kbd is a macro, it could also return a substitution that
will do the lookup at runtime depending on the maps then current.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: tweak to apropos-command display, (continued)
- Re: tweak to apropos-command display, Kim F. Storm, 2005/02/21
- Re: tweak to apropos-command display, Stefan, 2005/02/21
- Re: tweak to apropos-command display, Richard Stallman, 2005/02/22
- Re: tweak to apropos-command display, Kevin Rodgers, 2005/02/22
- Re: tweak to apropos-command display, Kim F. Storm, 2005/02/22
- Re: tweak to apropos-command display, David Kastrup, 2005/02/22
- Re: tweak to apropos-command display, Kim F. Storm, 2005/02/22
- Tweak to key-description for menu bindings (was Re: tweak to apropos-command display), Kim F. Storm, 2005/02/28
- Re: Tweak to key-description for menu bindings,
David Kastrup <=
- Re: Tweak to key-description for menu bindings (was Re: tweak to apropos-command display), Richard Stallman, 2005/02/28
- Re: Tweak to key-description for menu bindings, Kim F. Storm, 2005/02/28
- Re: tweak to apropos-command display, Stefan Monnier, 2005/02/22
- Re: tweak to apropos-command display, Kim F. Storm, 2005/02/22