From: David Ponce <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: Re: New easymenu behavior
Date: Wed, 03 Nov 2004 15:28:17 +0000 [thread overview]
Message-ID: <4188F911.5090502@wanadoo.fr> (raw)
In-Reply-To: <x5k6t3hw8d.fsf@lola.goethe.zz>
>> > What does your code do that did not already break in Emacs 21.3?
>>
>>recentf simply uses (easy-menu-add-item nil '("files") ...) to add
>>the recentf menu into the "File" menu which is identified with the
>>'files key symbol. This worked well in 21.3 because the code just
>>interned "files" to get the key symbol.
>
>
> That appears very shaky.
I agree.
>>Notice that XEmacs directly use menu item names to locate them. For
>>example you can use '("File") to locate the "File" menu in the menu
>>bar. Maybe is it a better mechanism to use in external libraries?
>
>
> Actually, that is all that I ever used with regard to easymenu. It is
> probably a bad idea to create and manage menus by a mixture of direct
> accesses and easymenu.
recentf only uses easymenu not a mixture of direct access and easymenu.
How do you tell easy-menu-add-item to use menu item names instead of
internal names? The following works with XEmacs but not with Emacs:
(easy-menu-add-item
nil
'("File")
'("Submmenu"
["item1" ignore]
["item2" ignore]))
In Emacs it replaces all the "File" menu items with "Submenu", and
create another empty "File" entry in the menu bar.
But the following works as expected.
(easy-menu-add-item
nil
'("Files")
'("Submmenu"
["item1" ignore]
["item2" ignore]))
next prev parent reply other threads:[~2004-11-03 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 11:36 New easymenu behavior David Ponce
2004-11-03 12:13 ` David Kastrup
2004-11-03 14:04 ` David Ponce
2004-11-03 13:56 ` David Kastrup
2004-11-03 15:28 ` David Ponce [this message]
2004-11-03 14:27 ` David Kastrup
2004-11-03 15:37 ` David Ponce
2004-11-04 9:52 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4188F911.5090502@wanadoo.fr \
--to=david.ponce@wanadoo.fr \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.