unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: New easymenu behavior
Date: Wed, 03 Nov 2004 15:27:52 +0100	[thread overview]
Message-ID: <x5brefhus7.fsf@lola.goethe.zz> (raw)
In-Reply-To: <4188F911.5090502@wanadoo.fr> (David Ponce's message of "Wed, 03 Nov 2004 15:28:17 +0000")

David Ponce <david.ponce@wanadoo.fr> writes:

>>> > 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.

If the menus were not created using easymenu, this amounts to a
mixture of direct access and easymenu.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2004-11-03 14:27 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
2004-11-03 14:27         ` David Kastrup [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x5brefhus7.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).