From xemacs-m  Fri May 30 10:37:39 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id KAA27968
	for <xemacs-beta@xemacs.org>; Fri, 30 May 1997 10:37:38 -0500 (CDT)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa07490;
          30 May 97 11:36 EDT
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id LAA06887; Fri, 30 May 1997 11:36:57 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id LAA23338; Fri, 30 May 1997 11:36:23 -0400
Date: Fri, 30 May 1997 11:36:23 -0400
Message-Id: <199705301536.LAA23338@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Pete Ware <ware@cis.ohio-state.edu>
Cc: xemacs-beta@xemacs.org
Subject: Re: easymenu and button 3
References: <vwm206phtqf.fsf@calico.cis.ohio-state.edu>
X-Mailer: VM 6.30 under 19.15p4 XEmacs Lucid
Reply-To: CCMODE Maintainer <cc-mode-help@python.org>
X-Attribution: BAW
X-Oblique-Strategy: Spectrum analysis
X-Url: http://www.python.org/~bwarsaw


>>>>> "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)))

-Barry

