From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Changing default mouse bindings Date: Fri, 17 Nov 2017 09:23:41 +0200 Message-ID: <838tf5id1e.fsf@gnu.org> References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> <87fu9heq03.fsf_-_@gmail.com> <86y3n83183.fsf@misasa.okayama-u.ac.jp> <86lgj54xpd.fsf@misasa.okayama-u.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510903454 3288 195.159.176.226 (17 Nov 2017 07:24:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 07:24:14 +0000 (UTC) Cc: charles@aurox.ch, johnw@gnu.org, emacs-devel@gnu.org, homeros.misasa@gmail.com, monnier@iro.umontreal.ca, agrambot@gmail.com, drew.adams@oracle.com To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 17 08:24:10 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFb0R-0000LA-3A for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 08:24:07 +0100 Original-Received: from localhost ([::1]:44286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFb0X-0002fk-UA for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 02:24:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFb0N-0002eJ-Qo for emacs-devel@gnu.org; Fri, 17 Nov 2017 02:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFb0N-0005fv-06 for emacs-devel@gnu.org; Fri, 17 Nov 2017 02:24:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFb0H-0005Zx-3x; Fri, 17 Nov 2017 02:23:57 -0500 Original-Received: from [176.228.60.248] (port=2700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eFb0G-000142-IX; Fri, 17 Nov 2017 02:23:56 -0500 In-reply-to: <86lgj54xpd.fsf@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Fri, 17 Nov 2017 08:21:02 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220241 Archived-At: > From: Tak Kunihiro > Cc: Tak Kunihiro , charles@aurox.ch (Charles A. Roelli), Alex , eliz@gnu.org, johnw@gnu.org, drew.adams@oracle.com, emacs-devel@gnu.org > Date: Fri, 17 Nov 2017 08:21:02 +0900 > > (global-set-key [mouse-3] 'mouse-context-menu) > (defun mouse-context-menu (event) > (interactive "e") > (or (poplife-mouse-dir-menu event) ; DIR menu > (poplife-mouse-url-menu event) ; URL menu > (mouse3-region-menu event) ; region menu > (mouse-context-menu-default event))) ; default menu <<<<< I don't think binding this to mouse-3 by default can fly, because it contradicts the usual GUI meaning of that button related to selections, something that is honored by all well-behaving GUI applications in the X world. It would be unwise for Emacs not to comply.