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: poplife-mode Date: Mon, 13 Nov 2017 10:24:35 -0500 Message-ID: References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510586747 16339 195.159.176.226 (13 Nov 2017 15:25:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 15:25:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 13 16:25:42 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 1eEGcF-0003pF-TX for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 16:25:40 +0100 Original-Received: from localhost ([::1]:54987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEGcN-0006SX-0e for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 10:25:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEGbT-0006MQ-Fb for emacs-devel@gnu.org; Mon, 13 Nov 2017 10:24:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEGbO-0001gt-H8 for emacs-devel@gnu.org; Mon, 13 Nov 2017 10:24:51 -0500 Original-Received: from [195.159.176.226] (port=56430 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEGbO-0001gY-9B for emacs-devel@gnu.org; Mon, 13 Nov 2017 10:24:46 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eEGbD-0000T0-9u for emacs-devel@gnu.org; Mon, 13 Nov 2017 16:24:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:VXsfpkQwFHyGyJeEcDp1M8nGY2Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:220141 Archived-At: >> It's visible if it was activated by an earlier command, >> of course. E.g. "mouse-3" followed by "down-mouse-3". > Pressing and holding down `mouse-3' does _not_ highlight > the region. That happens only when `mouse-3' is released. `mouse-3` is an "up", so it implies releasing the button. > If you mean first click `mouse-3' (press and release) > and then press and hold `mouse-3', That's right. > then you are talking about _two_ `mouse-3' clicks (it will be > released) - similar to what `mouse3.el' does. But that's only if you want to use the `mouse-3` event first. My suggestion is mostly about providing *another* operation on that same button (I expect it will rarely be used together with a mouse-3 event (i.e. with mouse-save-then-kill)). > Besides not highlighting the region that is active and > can be acted on, your approach has the disadvantage of > mistakenly killing the region when an intended long > press happens to be a bit too short. This risk only exists in the case you use down-mouse-3 right after mouse-3, which I expect will be rare. And from where I stand, a too-short click is *very* unlikely: the user will simply down-mouse-3 and "wait for the menu to appear" (as opposed to "wait 450ms"). And this user will even keep the button pressed significantly longer: he will only release the button after selecting the entry he's interested in. > What's better about it? No need to double click, hence (except for a 450ms delay) it behaves just like the "standard" context menu of other applications. Stefan