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: Tue, 14 Nov 2017 15:40:49 -0800 (PST) Message-ID: <45e65787-a4a1-44dd-a706-252681fa7426@default> References: <86shditx7b.fsf@misasa.okayama-u.ac.jp> <79a5c7f3-ca81-4476-bd91-e5436cc0a33f@default> <86vaid93ye.fsf@misasa.okayama-u.ac.jp> <86y3n81lyj.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 1510702938 2842 195.159.176.226 (14 Nov 2017 23:42:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 23:42:18 +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 Wed Nov 15 00:42: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 1eEkqI-0000I5-U2 for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2017 00:42:11 +0100 Original-Received: from localhost ([::1]:34042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEkqQ-0006i7-3E for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 18:42:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEkpG-0006Sm-4o for emacs-devel@gnu.org; Tue, 14 Nov 2017 18:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEkpD-0004Cw-1M for emacs-devel@gnu.org; Tue, 14 Nov 2017 18:41:06 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:28749) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEkpC-0004Ab-Q7 for emacs-devel@gnu.org; Tue, 14 Nov 2017 18:41:02 -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 vAENeqir006345 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 23:40:52 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAENepDi003623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Nov 2017 23:40:51 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAENeo3Q031506; Tue, 14 Nov 2017 23:40:50 GMT In-Reply-To: <86y3n81lyj.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:220202 Archived-At: > > 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. >=20 > I want to pop a keymap that is created dynamically such for directory > listing. To do so, functions that return keymap should be evaluated > sequentially. That shouldn't be hard to do with `mouse3.el'. Perhaps it is enough to add a clause to the `cond' in function=20 `mouse3-region-popup-custom-entries'. That function iterates over the value of option `mouse3-region-popup-entries'. Currently it expects an entry to be a keymap, a keymap variable, or (SYMBOL menu-item NAME MENU-KEYMAP . KEYWORDS) or (SYMBOL NAME . MENU-KEYMAP), with MENU-KEYMAP being a keymap variable. Adding a `cond' clause that checks for a function, and invokes it to get the actual entry to test, might be all that's needed.