[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tweak to key-description for menu bindings (was Re: tweak to apropos-com
From: |
Kim F. Storm |
Subject: |
Tweak to key-description for menu bindings (was Re: tweak to apropos-command display) |
Date: |
Mon, 28 Feb 2005 13:14:49 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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...
Since this is implemented in key-description, it will show the new
format in all contexts, e.g. for C-h a, C-h k, C-h w, etc.
Another example:
Old:
<menu-bar> <options> <mule> <set-various-coding-system>
<universal-coding-system-argument>
New:
Options=>Mule (Multilingual Environment)=>Set Coding Systems=>For Next Command
Shall I install this?
--
Kim F. Storm <address@hidden> http://www.cua.dk
- tweak to apropos-command display, Chong Yidong, 2005/02/21
- 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 <=
- Re: Tweak to key-description for menu bindings, David Kastrup, 2005/02/28
- 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