From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7466: 24.0.50; (emacs) `Menu Mouse Clicks' conflicts with code obsolescence Date: Wed, 03 Aug 2011 10:54:12 -0400 Message-ID: References: <8DEF1C31D0E84A10A369074780B43596@us.oracle.com> <964292C62050448687D7B8724248DFE6@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312383282 20228 80.91.229.12 (3 Aug 2011 14:54:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 14:54:42 +0000 (UTC) Cc: 'Juanma Barranquero' , 7466@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 03 16:54:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qocq9-0004Gs-PH for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2011 16:54:34 +0200 Original-Received: from localhost ([::1]:51687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qocq9-0003ev-Be for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2011 10:54:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qocq5-0003cz-Do for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 10:54:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qocq4-0000Oh-Bk for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 10:54:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qocq4-0000OZ-AE for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 10:54:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qocqb-00065S-O0; Wed, 03 Aug 2011 10:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2011 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7466-submit@debbugs.gnu.org id=B7466.131238328923380 (code B ref 7466); Wed, 03 Aug 2011 14:55:01 +0000 Original-Received: (at 7466) by debbugs.gnu.org; 3 Aug 2011 14:54:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QocqP-000653-EB for submit@debbugs.gnu.org; Wed, 03 Aug 2011 10:54:49 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QocqN-00064u-Tb for 7466@debbugs.gnu.org; Wed, 03 Aug 2011 10:54:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EADlgOU5FxKfe/2dsb2JhbABCp194gUABAQQBViMQCzQSFBgNJId/wH2GQgSfSoQx X-IronPort-AV: E=Sophos;i="4.67,310,1309752000"; d="scan'208";a="128538080" Original-Received: from 69-196-167-222.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.222]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 03 Aug 2011 10:54:12 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B24CB660CF; Wed, 3 Aug 2011 10:54:12 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 03 Aug 2011 09:44:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 03 Aug 2011 10:55:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49877 Archived-At: >>> I assume that we're not asking people to bind mouse-3 to >>> (mouse-menu-major-mode-map)? >> Why would you assume so? > Because I tried that, and it didn't give me the same menu that's > currently on `C-mouse-3'. :-) Oh, right it's not what I thought. Yes, it's a bit inconvenient to move the mapping from C-mouse-3 to mouse-3 because you really want to put onto mouse-3 the menu-item that's on C-mouse-3, but (global-set-key [down-mouse-3] (key-binding [C-down-mouse-3])) will only give you the keymap returned by mouse-menu-major-mode-map rather than the menu-item itself. You'd like to be able to do: (global-set-key [down-mouse-3] [C-down-mouse-3]) But that doesn't work because such remapping don't work right for events with parameters such as mouse clicks. I guess you can do: (global-set-key [down-mouse-3] (cdr (assq 'C-down-mouse-3 global-map))) but it's ugly. Maybe we need a way to ask `key-binding' to return menu-items rather than the binding specified in them. But key-binding already takes many parameters..maybe we could abuse the `no-remap' arg for that? Stefan