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: Sat, 4 Nov 2017 22:52:03 -0700 (PDT) Message-ID: <33f357e4-99ea-43f8-b470-8045f9cb5001@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 1509861144 16917 195.159.176.226 (5 Nov 2017 05:52:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Nov 2017 05:52:24 +0000 (UTC) To: Tak Kunihiro , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 05 06:52:19 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 1eBDr1-00048X-2R for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 06:52:19 +0100 Original-Received: from localhost ([::1]:43079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBDr8-0000t7-9u for ged-emacs-devel@m.gmane.org; Sun, 05 Nov 2017 01:52:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBDr1-0000t0-Ll for emacs-devel@gnu.org; Sun, 05 Nov 2017 01:52:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBDqw-00024Q-PT for emacs-devel@gnu.org; Sun, 05 Nov 2017 01:52:19 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33650) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eBDqw-00020a-Gq for emacs-devel@gnu.org; Sun, 05 Nov 2017 01:52:14 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA55q99A031199 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 5 Nov 2017 05:52:09 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vA55q6KO020835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 5 Nov 2017 05:52:08 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vA55q3Zn014248; Sun, 5 Nov 2017 05:52:04 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: 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:223473 > With following line, one can cut and paste text using a pop-up menu > triggered by right click. > (define-key global-map [mouse-3] menu-bar-edit-menu) >=20 > I noticed that menu-bar items that lead visiting files, buffers, > frames, bookmarks, and recentf can be gathered into a pop-up menu. >=20 > I wrote a minor mode `poplife' that provides an integrated pop-up menu > triggered by right click. Also this minor mode offers contextual > pop-up menus. When a thing under mouse click is file/directory, word, > and url, this provides pop-up menus of list of files, candidates of > words, and url-opening-menu, respectively. >=20 > (require 'poplife) > (setq poplife-word-flag t) > (setq poplife-url-flag t) > (setq poplife-edit-cottager '(:imenu t :buffer t :frame t :bookmark t > :recentf t)) > (poplife-mode 1) >=20 > Contextual pop-up menu by right click is very common interface > nowadays and I propose to include this (or something like this) to Emacs. Related: https://www.emacswiki.org/emacs/Mouse3 (description, screenshots) https://www.emacswiki.org/emacs/download/mouse3.el (code) Examples of specialized use: * `*Completions*' window - actions on candidates and general actions: https://www.emacswiki.org/emacs/Icicles_-_Screenshots#CompletionPopupMenu * Dired - two menus, single file or region of file names: https://www.emacswiki.org/emacs/DiredPlus#RegionMenuWithMouse3Library