unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: New easymenu behavior
Date: Thu, 04 Nov 2004 04:52:19 -0500	[thread overview]
Message-ID: <E1CPeHz-0001fB-2A@fencepost.gnu.org> (raw)
In-Reply-To: <4188F911.5090502@wanadoo.fr> (message from David Ponce on Wed, 03 Nov 2004 15:28:17 +0000)

    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]))

The bug here was caused by the fact that the standard menu
whose name is File used `files' as the symbol.  They do not correspond.

I changed it to `file' in menu-bar.el so that it corresponds.
Now that example does work correctly.


Meanwhile, reverting to the 21.1 definition of easy-menu-intern would
work correctly if we also change all the menu-bar symbols that are
specified explicitly to look just like the menu item string.

      parent reply	other threads:[~2004-11-04  9:52 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
2004-11-03 15:37           ` David Ponce
2004-11-04  9:52         ` Richard Stallman [this message]

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=E1CPeHz-0001fB-2A@fencepost.gnu.org \
    --to=rms@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).