From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: New easymenu behavior Date: Thu, 04 Nov 2004 04:52:19 -0500 Message-ID: References: <4188C2D1.6000607@wanadoo.fr> <4188E566.5080601@wanadoo.fr> <4188F911.5090502@wanadoo.fr> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1099563289 14151 80.91.229.6 (4 Nov 2004 10:14:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2004 10:14:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 04 11:14:44 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPedg-00088A-00 for ; Thu, 04 Nov 2004 11:14:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPelo-0007VA-Sa for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2004 05:23:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPeTI-0002o8-9i for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:04:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPeTD-0002m9-JZ for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:03:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPeRc-0002UD-Rj for emacs-devel@gnu.org; Thu, 04 Nov 2004 05:02:17 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CPeJR-00025o-2T for emacs-devel@gnu.org; Thu, 04 Nov 2004 04:53:49 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CPeHz-0001fB-2A; Thu, 04 Nov 2004 04:52:19 -0500 Original-To: David Ponce In-reply-to: <4188F911.5090502@wanadoo.fr> (message from David Ponce on Wed, 03 Nov 2004 15:28:17 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29423 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29423 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.