From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: poplife-mode Date: Mon, 13 Nov 2017 09:08:27 -0800 (PST) Message-ID: <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510592922 29966 195.159.176.226 (13 Nov 2017 17:08:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 17:08:42 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 13 18:08:37 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 1eEIDs-0007T0-DZ for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 18:08:36 +0100 Original-Received: from localhost ([::1]:55562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEIDz-0004fG-PT for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 12:08:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEIDs-0004fA-LP for emacs-devel@gnu.org; Mon, 13 Nov 2017 12:08:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEIDo-0003Hi-Ff for emacs-devel@gnu.org; Mon, 13 Nov 2017 12:08:36 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:37760) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEIDo-0003HF-6t for emacs-devel@gnu.org; Mon, 13 Nov 2017 12:08:32 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vADH8Tds001823 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2017 17:08:29 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vADH8TeV022383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2017 17:08:29 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vADH8Sm1009059; Mon, 13 Nov 2017 17:08:28 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 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:220145 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. >=20 > `mouse-3` is an "up", so it implies releasing the button. Sure - when we mean the _event_. `mouse-3' is also the name of the button - as in "pressing and holding down `mouse-3'. If that wasn't clear, please reread what I wrote, substituting "3rd mouse button" for such occurrences. > > If you mean first click `mouse-3' (press and release) > > and then press and hold `mouse-3', >=20 > That's right. >=20 > > then you are talking about _two_ `mouse-3' clicks (it will be > > released) - similar to what `mouse3.el' does. >=20 > 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)). Not sure what you are trying to say. You seemed to be saying that the region is highlighted with your feature also. My point was that the region is highlighted only after the button is release, which is as many clicks with your approach as with the mouse3.el approach (which shows the menu upon button release, not upon long press). With your approach, simply pressing and holding the button down a long time will show the menu, but it won't highlight the region. So it is not appropriate for menu items that act on the region or otherwise take the region into account.=20 > > 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. >=20 > This risk only exists in the case you use down-mouse-3 > right after mouse-3, which I expect will be rare. AFAICT, it's the only way, with your approach, to see the region you will act on get highlighted. Are you relegating your approach to menus that don't have items that act on the region? > > What's better about it? >=20 > No need to double click, hence (except for a 450ms delay) As I pointed out, there is just as much need to click twice, if you want to see the region. (It's not a double-click event in either case; it's two click events in both cases.) > it behaves just like the "standard" context menu of other > applications. At least on MS Windows, the apps I use all show the menu upon button-release, not upon button press. (And press-and-hold is surely not standard for showing a menu anywhere, is it?) And if there is anywhere where a `mouse-3' menu is used ubiquitously it is on Windows. Windows users are used to `mouse-3' showing a context menu when it is clicked, not when it is pressed and held. So I'd say that the mouse3.el approach is at least as "standard-context-menu"-like as your approach.