emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

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