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: easymenu.el Date: Tue, 09 Nov 2004 12:21:57 +0100 Message-ID: References: <41891091.7010304@freemail.hu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099999457 11431 80.91.229.6 (9 Nov 2004 11:24:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2004 11:24:17 +0000 (UTC) Cc: public@heslin.eclipse.co.uk, Stefan , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 09 12:24:05 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 1CRU6X-0007ET-00 for ; Tue, 09 Nov 2004 12:24:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRUEw-0000H0-2E for ged-emacs-devel@m.gmane.org; Tue, 09 Nov 2004 06:32:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRUEo-0000Gj-Dh for emacs-devel@gnu.org; Tue, 09 Nov 2004 06:32:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRUEn-0000GI-DB for emacs-devel@gnu.org; Tue, 09 Nov 2004 06:32:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRUEn-0000Fn-6O for emacs-devel@gnu.org; Tue, 09 Nov 2004 06:32:37 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRU5V-0006pc-66 for emacs-devel@gnu.org; Tue, 09 Nov 2004 06:23:01 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CRU4C-0005k6-8R; Tue, 09 Nov 2004 06:21:40 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 09 Nov 2004 06:14:48 -0500") 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:29635 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29635 Richard Stallman writes: [Stefan:] > BTW, I've just installed a patch to easymenu that makes it look > for menu-item *names* when looking up keymaps, so you should now > be able to say (easy-menu-add-item nil '("File") ["foo" bar]) to > add an entry "foo" in the "File" menu even though that menu's > key name is `files'. As can be guessed by the different > spelling, this now works regardless of the actual definition of > easy-menu-intern, so I (re-)propose the additional patch below, > > That's clever. Actually, I'd say it's natural. So I can't help suspecting that the original design was there for a purpose. > I guess the problem is solved now, and we don't have to change other > code. Is there any serious performance degradation to be expected, Stefan? I think there was a time when calling menus the first time was rather expensive. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum