From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Changing default mouse bindings Date: Tue, 14 Nov 2017 11:34:03 -0500 Message-ID: References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> <87fu9heq03.fsf_-_@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510677181 8853 195.159.176.226 (14 Nov 2017 16:33:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 16:33:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , John Wiegley , Drew Adams , Alex , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 17:32:56 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 1eEe8s-0001vZ-Gy for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 17:32:54 +0100 Original-Received: from localhost ([::1]:60635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEe8z-0004xG-TD for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 11:33:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEe8m-0004rL-2F for emacs-devel@gnu.org; Tue, 14 Nov 2017 11:32:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEe8g-00074h-Fp for emacs-devel@gnu.org; Tue, 14 Nov 2017 11:32:48 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:52784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEe8c-000737-Mn; Tue, 14 Nov 2017 11:32:38 -0500 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id vAEGWY7O014565; Tue, 14 Nov 2017 11:32:34 -0500 Original-Received: by lechazo.home (Postfix, from userid 20848) id 0453760D90; Tue, 14 Nov 2017 11:34:03 -0500 (EST) In-Reply-To: (Yuri Khan's message of "Tue, 14 Nov 2017 14:07:45 +0700") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6158=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6158> : inlines <6171> : streams <1770278> : uri <2533865> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:220186 Archived-At: > No, that sounds like a feature. In general, showing the context menu > on a mouse up makes it possible to perform several different gestures > of varying complexity: > * Simple secondary click: mouse down, followed by a movement not > exceeding a few pixels, followed by mouse up. This normally just shows > the context menu. > * Secondary drag-select: mouse down at a position A in text buffer, > followed by a movement across buffer text to another position B, > followed by mouse up. Normally selects a region spanning from A up to > B and shows the context menu applicable to it. > * Secondary drag-and-drop: mouse down within a marked region, followed > by movement to a position outside the region, possibly in a different > window, frame or application, followed by mouse up. Shows a menu that > offers multiple actions that could be done to the region and the > target position (move or copy text between buffers; move, copy, hard- > or symlink files across the file system; feed text or file as input to > a program). > * Mouse gestures: mouse down, followed by movement in a well-defined > geometric shape, followed by mouse up. The action performed then > depends on the shape of movement. Funnily enough, that still leaves "mouse down, with (almost) no movement and stay there for a while" unused so it can be used for a "context menu on long-mouse-down". Stefan