emacs-devel
[Top][All Lists]
Advanced

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

Re: Format av menu keymaps


From: Stefan Monnier
Subject: Re: Format av menu keymaps
Date: Tue, 10 Jan 2006 12:40:55 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Thanks very much, this works perfectly, using the value returned from
> lookup-key for menu-bar-entry.

Well... duh!  That's the code I sent in the first place.

> But I wonder why you prefer to use
>     (vector (intern (concat "appmenu-major-" (symbol-name key))))
> instead of
>     (read (concat "[appmenu-major-" (symbol-name key) "]"))

For example because this fails if `key' is a symbol whose name is ")".
`read' is a very high-level operation with complex semantics which are
neither useful nor harmless here.


        Stefan




reply via email to

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