From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: New easymenu behavior Date: Wed, 03 Nov 2004 13:13:44 +0100 Message-ID: References: <4188C2D1.6000607@wanadoo.fr> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1099484575 22283 80.91.229.6 (3 Nov 2004 12:22:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2004 12:22:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 03 13:22:50 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 1CPKA5-0006om-00 for ; Wed, 03 Nov 2004 13:22:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPKIA-0000Yt-0C for ged-emacs-devel@m.gmane.org; Wed, 03 Nov 2004 07:31:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPK9X-0006l8-0d for emacs-devel@gnu.org; Wed, 03 Nov 2004 07:22:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPK9V-0006kd-Uw for emacs-devel@gnu.org; Wed, 03 Nov 2004 07:22:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPK9V-0006kX-Nq for emacs-devel@gnu.org; Wed, 03 Nov 2004 07:22:13 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CPK1N-00056A-Rh for emacs-devel@gnu.org; Wed, 03 Nov 2004 07:13:49 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CPK01-0007Oa-Rv; Wed, 03 Nov 2004 07:12:26 -0500 Original-To: David Ponce In-Reply-To: <4188C2D1.6000607@wanadoo.fr> (David Ponce's message of "Wed, 03 Nov 2004 11:36:49 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:29375 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29375 David Ponce writes: > It appears that this change: > > 2004-11-02 Richard M. Stallman > > * emacs-lisp/easymenu.el (easy-menu-intern): > Don't downcase; rather, case-flip the first letter of each word. > > Introduced some incompatibility with the previous version of > easymenu. For example, now recentf creates a new "files" entry in the > menu bar instead of adding an entry in the "File" menu. This change makes menu entries that differ only in case different. For example, AUCTeX has a "Greek" and a "greek" menu. More importantly, it has menu entries =CE=B3 \gamma and =CE=93 \Gamma and those now get differentiated again (though their names now get swapped). Menus that differed only in case were already given different names in 21.3. Smudging them together only occured because of Richard downcasing the menu names (with easy-menu-intern) at some time during 21.4 development. > I think I can easily fix that by using the "Files" path instead of > the "files" one to locate the "File" menu. Unfortunately, that > change also broke other code I have, and probably other existing > code that uses easymenu to locate menu items. What does your code do that did not already break in Emacs 21.3? > So my question: should I fix recentf or is the new easymenu behavior > a bug? The new behavior is certainly no bug: it is entirely easymenu's choice what symbols to use for some menu, that's some internal decision. I can't rule out, however, that maybe easy-menu-intern is used in more or less places than required, which could cause such mismatches. Can you go into details about the usage patterns that cause this problem? If they do not have similar problems with Emacs-21.3 already, there might be some bug. > What about compatibility with existing code that uses easymenu? It should not be tampering with internals. If your problem is not due to that, you should provide examples of what happens. --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum