From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mode-line under vc Date: Tue, 17 Jul 2007 00:49:41 -0400 Message-ID: References: <18076.1046.673811.680457@kahikatea.snap.net.nz> <200707170228.l6H2Scc2022785@oogie-boogie.ics.uci.edu> <18076.16728.68001.130281@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184648050 4304 80.91.229.12 (17 Jul 2007 04:54:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2007 04:54:10 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 06:54:08 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IAf4a-0001WG-83 for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 06:54:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAf4Z-0006tT-Dq for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 00:54:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAf4V-0006rz-IK for emacs-devel@gnu.org; Tue, 17 Jul 2007 00:54:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAf4T-0006q1-Qo for emacs-devel@gnu.org; Tue, 17 Jul 2007 00:54:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAf4T-0006px-LZ for emacs-devel@gnu.org; Tue, 17 Jul 2007 00:54:01 -0400 Original-Received: from tomts36-srv.bellnexxia.net ([209.226.175.93]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAf4T-0004xK-4K for emacs-devel@gnu.org; Tue, 17 Jul 2007 00:54:01 -0400 Original-Received: from pastel.home ([70.53.195.201]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070717045359.KQEN1657.tomts36-srv.bellnexxia.net@pastel.home> for ; Tue, 17 Jul 2007 00:53:59 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5292B8011; Tue, 17 Jul 2007 00:49:41 -0400 (EDT) In-Reply-To: <18076.16728.68001.130281@kahikatea.snap.net.nz> (Nick Roberts's message of "Tue\, 17 Jul 2007 16\:11\:04 +1200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:74956 Archived-At: > In any case this binding (VC Menu) doesn't work if the window isn't already > selected. You need to do something like mouse-major-mode-menu: > (defun mouse-major-mode-menu (event &optional prefix) > "Pop up a mode-specific menu of mouse commands. > Default to the Edit menu if the major mode doesn't define a menu." > ;; Switch to the window clicked on, because otherwise > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ;; the mode's commands may not make sense. Are you sure it's needed? It'd sound like a bug in keyboard.c (or somesuch) if it is. Stefan PS: Yes, it may be needed if the menu is popped manually via a defun as is done for mouse-major-mode-menu, but for menus that are popped directly by the keymap-traversal code it seems like a bug.