From xemacs-m  Mon Mar 24 06:25:51 1997
Received: from macon.informatik.uni-tuebingen.de (macon2.Informatik.Uni-Tuebingen.De [134.2.13.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA04680
	for <xemacs-beta@xemacs.org>; Mon, 24 Mar 1997 06:25:50 -0600 (CST)
Received: from modas.informatik.uni-tuebingen.de (modas.Informatik.Uni-Tuebingen.De [134.2.12.3]) by macon.informatik.uni-tuebingen.de (8.8.4/8.8.3/AIX-4.1/WSI-1.0) with SMTP id NAA16228; Mon, 24 Mar 1997 13:25:44 +0100
Received: by modas.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA14986; Mon, 24 Mar 1997 13:25:43 +0100
Sender: sperber@informatik.uni-tuebingen.de
To: xemacs-beta@xemacs.org
Cc: Wernke zur Borg <wzb@anitesystems.de>
Subject: Re: [Wernke zur Borg <wzb@anitesystems.de>] Re: popup-mode-menu()
References: <m2u3m1h4m2.fsf@altair.xemacs.org>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
In-Reply-To: Steven L Baur's message of 24 Mar 1997 04:11:17 -0800
X-Mailer: Gnus v5.4.33/XEmacs 20.1(beta9)
Date: 24 Mar 1997 13:25:42 +0100
Message-Id: <y9lafnt8ojd.fsf@modas.informatik.uni-tuebingen.de>
Lines: 48

>>>>> "sb" == Steven L Baur <steve@miranova.com> writes:

sb> [1  <text/plain; US-ASCII (7bit)>]

sb> Can anyone help this person?  I give up.  The patch he is referring to 
sb> is:

sb> From: Wernke zur Borg <wzb@anitesystems.de>

sb> Thanks for the new attempt. It still does not work as expected,
sb> although the loop bug seems to be corrected. I don't understand why
sb> you don't understand what I want. I simply want the popup-mode-menu()
sb> function to work as intended, i.e., to combine the global-popup-menu
sb> with the mode-popup-menu. What else is it expected to do?

But it does what you want.

sb> What happens now depends on the mode. For instance:

sb> c-mode: global-popup-menu is suppressed

That's because cc-mode doesn't *call* popup-mode-menu, but does

      (define-key c-mode-map 'button3 'c-popup-menu)))

and

(defun c-popup-menu (e)
  "Pops up the C/C++/ObjC menu."
  (interactive "@e")
  (popup-menu (c-mode-menu))
  (c-keep-region-active))
    
Call it a bug in cc-mode, but it sure isn't one in popup-mode-menu.
Barry?

sb> text-mode: mode-popup-menu is suppressed

There isn't a mode-popup-menu for text-mode.  Nothing gets
suppressed---there's nothing there in the first place.  If you've been 
trying to set it, note that mode-popup-menu is buffer-local.

sb> emacs-lisp-mode: ok! global-popup-menu and mode-popup-menu are
sb> 		 correctly combined.

That's because it doesn't redefine button3 to something else.

Cheers =8-} Mike

