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: Sun, 12 Nov 2017 17:06:51 -0800 (PST) Message-ID: <74fcaf9d-1902-4f09-adf6-6bf1d2460a8c@default> References: < > <> <> 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 1510535240 29561 195.159.176.226 (13 Nov 2017 01:07:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 01:07:20 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, drew.adams@oracle.com, emacs-devel@gnu.org To: charles@aurox.ch, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 13 02:07:14 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 1eE3DW-0007J5-E8 for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 02:07:14 +0100 Original-Received: from localhost ([::1]:51784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eE3Dd-0000sN-Lq for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 20:07:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eE3DV-0000sG-3K for emacs-devel@gnu.org; Sun, 12 Nov 2017 20:07:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eE3DR-0005Da-U1 for emacs-devel@gnu.org; Sun, 12 Nov 2017 20:07:13 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:24196) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eE3DR-0005DM-LW for emacs-devel@gnu.org; Sun, 12 Nov 2017 20:07:09 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAD16uax022108 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2017 01:06:57 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAD16ukD029000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Nov 2017 01:06:56 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAD16rE5003393; Mon, 13 Nov 2017 01:06:53 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: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 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:220121 Archived-At: > > > I also hope we can include something like this in Emacs one day. But > > > I would not want to usurp the current binding of mouse-3, which is > > > handy in its own right. We could instead trigger the pop-up menu by, > > > > Have you tried C-mouse-3? It already offers something similar, so it > > would make sense to tweak it do what the OP needs. >=20 > That could work. I'd still rather not require both a hand on the > keyboard and the mouse to pop up a contextual menu, though. >=20 > I just read up on how Drew's library `mouse3' solves the problem. If > I understood it right, it redefines mouse-save-then-kill (mouse-3's > normal binding) to respond differently to either a double-click of > mouse-3 or two single-clicks of mouse-3 in the same spot. A > double-click kills the region as it usually does, whereas two > single-clicks pop up a contextual menu with menu items based on either > the "thing at point" (if no region is selected) or the selected > region. This also seems like o good solution. FWIW: `mouse3.el', like all my code, is available for GNU Emacs. Parts of it, which extend or modify existing Emacs code, could be merged in (patch). Other parts could be added. https://www.emacswiki.org/emacs/download/mouse3.el