From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Extended menu items, when are :enable and :filter computed? Date: Mon, 27 Feb 2006 03:59:21 -0500 Message-ID: References: <44010776.6020804@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1141194813 31377 80.91.229.2 (1 Mar 2006 06:33:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2006 06:33:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 01 07:33:32 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 1FEKtm-0003MF-Eu for ged-emacs-devel@m.gmane.org; Wed, 01 Mar 2006 07:33:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEKtl-0004Nd-UA for ged-emacs-devel@m.gmane.org; Wed, 01 Mar 2006 01:33:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FDeEd-0008Ir-H5 for emacs-devel@gnu.org; Mon, 27 Feb 2006 04:00:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FDeEE-0008Db-LX for emacs-devel@gnu.org; Mon, 27 Feb 2006 04:00:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FDeEB-0008DC-Fu for emacs-devel@gnu.org; Mon, 27 Feb 2006 03:59:37 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FDeEn-0008RM-QE for emacs-devel@gnu.org; Mon, 27 Feb 2006 04:00:13 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FDeDx-0001ZO-CD; Mon, 27 Feb 2006 03:59:21 -0500 Original-To: Lennart Borgman In-reply-to: <44010776.6020804@student.lu.se> (message from Lennart Borgman on Sun, 26 Feb 2006 02:42:14 +0100) 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:51034 Archived-At: 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? Yes. The toolkit displays the menus, and Emacs does not even know which ones it displays. Emacs must provide the full info in advance. There is no choice about this. Why do you care? The user COULD look at all the submenus at any time, so why do you care whether he does look at them all, or only at some?