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 16:48:23 -0800 (PST) Message-ID: References: <86shditx7b.fsf@misasa.okayama-u.ac.jp> <79a5c7f3-ca81-4476-bd91-e5436cc0a33f@default> <86vaid93ye.fsf@misasa.okayama-u.ac.jp> 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 1510620561 19190 195.159.176.226 (14 Nov 2017 00:49:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 00:49:21 +0000 (UTC) Cc: charles@aurox.ch, emacs-devel@gnu.org To: Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 01:49:17 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 1eEPPe-0004aL-HA for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 01:49:14 +0100 Original-Received: from localhost ([::1]:57092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEPPl-0001XQ-IT for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 19:49:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEPP5-0001XG-S8 for emacs-devel@gnu.org; Mon, 13 Nov 2017 19:48:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEPP1-00056t-V9 for emacs-devel@gnu.org; Mon, 13 Nov 2017 19:48:39 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:22481) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEPP1-00055f-Lx for emacs-devel@gnu.org; Mon, 13 Nov 2017 19:48:35 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAE0mRgW017551 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 00:48:28 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAE0mQ5S007549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 00:48:26 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAE0mOAW024774; Tue, 14 Nov 2017 00:48:25 GMT In-Reply-To: <86vaid93ye.fsf@misasa.okayama-u.ac.jp> 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: userv0022.oracle.com [156.151.31.74] 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:220167 Archived-At: > >> I think that a context menu should be created from list of > >> functions because each person wants to have his own context > >> menu > > > > Did you look at or try mouse3.el? It makes it very > > easy to have your own contextual `mouse-3' menus, > > whatever the context (a mode or anything else). >=20 > Yes, I checked your mouse3. Thank you. > Actually I tried to import "Thing at Pointer". Not sure what that means. > I meant it is good if one can call other possible key's definition (or > keymaps) before mouse3 as below. >=20 > (defvar context-candidates > '(poplife-mouse-file-menu ; FILE menu > poplife-mouse-dir-menu ; DIR menu > poplife-mouse-ispell-menu ; iSpell menu > poplife-mouse-url-menu ; URL menu > mouse3-region-menu ; REGION menu > mouse3-noregion-menu)) ; DEFAULT menu You can incorporate any existing menus you want, with `mouse3.el'. See how the current major-mode menu is incorporated, for example. Or the menu-bar menus (all of them, under a menu `Menu Bar', when the menu-bar itself is not visible). To incorporate an existing menu, all you need is its keymap.