From xemacs-m  Thu Mar 20 00:11:55 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id AAA00987
	for <xemacs-beta@xemacs.org>; Thu, 20 Mar 1997 00:11:54 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id WAA21622;
	Wed, 19 Mar 1997 22:23:36 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Problem with :filter
References: <rjvi6pwcjn.fsf@zuse.dina.kvl.dk>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Per Abrahamsen's message of 18 Mar 1997 14:32:44 +0100
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 19 Mar 1997 22:23:32 -0800
Message-ID: <m2endb5bff.fsf@altair.xemacs.org>
Lines: 43
X-Mailer: Gnus v5.4.32/XEmacs 20.1(beta9)

Per Abrahamsen writes:

> I have tried to use `:filter' in the Options->Customize->Emacs menu
> and submenus, to allow a complete menu hierarchy without having to
> load anything unnecessary.

The documentation is silent on this issue.  A casual reading of the
code indicates this is a reasonable expectation.

> It doesn't seem to work that way, though.  When you activate
> Options-> Customize->Emacs it seems to build the entire hierarchy
> (loading everything), not just the menu itself.

> Is :filter supposed to work like this, or is it a bug, or do I use it
> wrong? 

My guess is it's a bug or an oversight.

Try this patch out, and maybe someone who knows what the menu code is
trying to do could comment on it.

(Should work on both 19.15 and 20.1)

Index: menubar-x.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-19.15/src/menubar-x.c,v
retrieving revision 1.3
diff -u -r1.3 menubar-x.c
--- menubar-x.c	1997/03/02 03:44:25	1.3
+++ menubar-x.c	1997/03/20 06:18:13
@@ -358,7 +358,7 @@
       assert (hack_wv->type == INCREMENTAL_TYPE);
       VOID_TO_LISP (submenu_desc, hack_wv->call_data);
       wv = menu_item_descriptor_to_widget_value (submenu_desc, SUBMENU_TYPE,
-						 1, 1);
+						 1, 0);
       if (!wv)
 	{
 	  wv = xmalloc_widget_value ();

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

