From xemacs-m  Fri May 30 11:04:32 1997
Received: from mail.cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.8.55])
	by xemacs.org (8.8.5/8.8.5) with SMTP id LAA28147
	for <xemacs-beta@xemacs.org>; Fri, 30 May 1997 11:04:32 -0500 (CDT)
Received: from calico.cis.ohio-state.edu (calico.cis.ohio-state.edu [164.107.142.11]) by mail.cis.ohio-state.edu (8.6.7/8.6.4) with ESMTP id MAA01396; Fri, 30 May 1997 12:04:04 -0400
Received: (ware@localhost) by calico.cis.ohio-state.edu (8.8.0/8.6.4) id MAA02755; Fri, 30 May 1997 12:04:03 -0400 (EDT)
To: xemacs-beta@xemacs.org
Subject: Re: easymenu and button 3
References: <vwm206phtqf.fsf@calico.cis.ohio-state.edu> <199705301536.LAA23338@anthem.CNRI.Reston.Va.US>
From: Pete Ware <ware@cis.ohio-state.edu>
Date: 30 May 1997 12:04:01 -0400
In-Reply-To: "Barry A. Warsaw"'s message of Fri, 30 May 1997 11:36:23 -0400
Message-ID: <vwmyb8xgd5a.fsf@calico.cis.ohio-state.edu>
Lines: 29
X-Mailer: Gnus v5.4.51/XEmacs 20.2(beta5)

"Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US> writes:

> >>>>> "PW" == Pete Ware <ware@cis.ohio-state.edu> writes:
> 
>     PW> I was updating some code to use easymenu and ran into some
>     PW> problems. In particular, what's up with the way button 3 is
>     PW> supposed to work? CC-mode's (for example, other's do the same)
>     PW> menu gets trashed as soon as I define a menu with button 3.
> 
> For XEmacs, the blessed way is to set mode-popup-menu to the button 3
> menu you want to pop up, and it should be mode specific.  This is the
> way I support button 3 menus in XEmacs for CC Mode:
> 
>   (if (boundp 'mode-popup-menu)
>       (setq mode-popup-menu (c-mode-menu t)))
> 

Yeah, except it doesn't interact well with the way easymenu implements 
popup menus.  I wasn't sure which was the ``blessed'' way.

Easymenu is friendlier to minor modes and multiple package writers.
For example, try button 3 in a GNUS *Group* buffer for that style.
The way everyone else does it results in a much more mode specific
menu.  Unfortunately, the two don't co-exist.

Should easymenu be changed or vice versa?  Should minor modes even be
touching the popup menu?

--pete

