I would like a new keyword in menu items.
:keys-sequence KEY-SEQUENCE
KEY-SEQUENCE is nil or an equivalent keyboard binding for the menu item.
I suspect XEmacs has no need for this as it computes the equivalent
keyboard bindings fast enough. It would be enough for my purpose if
XEmacs accepts the keyword in menus without protesting, it doesn't
have to use it.
The reason I want this keyword is to simplify things for easymenu.el.
The problem is that Emacs takes long time to compute equivalent keyboard
bindings. Emacs use a cache to speed things up, so this is a problem only
the first time a menu is displayed. E.g. auctex menus take about 4 seconds
to display on my machine. To speed things up, the new menu item format
in Emacs understands the :key-sequence keyword and use the KEY-SEQUENCE
to preload the cache. If this is used, auctex menus display in 0.45 seconds.
To use this new menu item format, I suggest including :key-sequence keyword
in the easymenu API. Up till now this API has been the XEmacs API, and
it is clearly best to keep it that way.
For this reason I suggest that XEmacs either use this keyword or just ignores
it without protest.
--
Inge Frick Tel: +46 8 7906956 Fax: +46 8 7900930
Postal address: Inge Frick, NADA, KTH, S-100 44 Stockholm, Sweden
E-mail: inge(a)nada.kth.se WWW:
http://www.nada.kth.se/~inge/