From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Extended menu items, when are :enable and :filter computed? Date: Sun, 26 Feb 2006 02:42:14 +0100 Message-ID: <44010776.6020804@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140947497 10773 80.91.229.2 (26 Feb 2006 09:51:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2006 09:51:37 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 26 10:51:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FDIYq-0005md-UE for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2006 10:51:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDIYq-0006BP-1C for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2006 04:51:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FDAxI-0004Kr-Mb for emacs-devel@gnu.org; Sat, 25 Feb 2006 20:44:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FDAvY-0002fH-CF for emacs-devel@gnu.org; Sat, 25 Feb 2006 20:44:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDAvW-0002eA-7T for emacs-devel@gnu.org; Sat, 25 Feb 2006 20:42:22 -0500 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FDAvv-0005G2-2k for emacs-devel@gnu.org; Sat, 25 Feb 2006 20:42:47 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.070) id 43F9B8E90015F1D8 for emacs-devel@gnu.org; Sun, 26 Feb 2006 02:42:15 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Emacs Devel 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: news.gmane.org gmane.emacs.devel:50982 Archived-At: I think at least for me it is impossible to understand from the documentation when :enable and :filter in a menu-item list is computed. I believe the documentation should be improved. From my simple tests is seems like the argument to :filter is computed every time the menubar is accessed. It is not really what I would expect when this is in a submenu. Is this behaviour intentional? The same seems to be true for the argument to :enable. Is this intentional? What I mean is that I would expect those argument to be computed when they are needed, ie when the submenu is displayed.