help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: standard popup menu


From: Kevin Rodgers
Subject: Re: standard popup menu
Date: Mon, 14 Jul 2003 09:03:49 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Bruce Ingalls wrote:

...
        '(t "Undo                 C-_"    "(undo)")

If anyone knows how to put a tab in popup menu description,
to better align the keyboard shortcuts, or for that matter,
programmatically insert the keybinding, instead of using
hard-coding, let me know.

See the "Simple Menu Items" and "Extended Menu Items" nodes of the Emacs

Lisp manual.

I would also recommend using make-sparse-keymap and define-key (iterating
over the menu-items) to build the menu keymap instead of building it with
list functions.

--
Kevin Rodgers



reply via email to

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