From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Tue, 24 Aug 2021 20:23:48 +0300 Organization: LINKOV.NET Message-ID: <877dgalpsr.fsf@mail.linkov.net> References: <87lf4tews5.fsf@mail.linkov.net> <00A9BE5A-D661-42AF-A65B-3B80C7428121@misasa.okayama-u.ac.jp> <87wnociu41.fsf@mail.linkov.net> <20210824.191259.1858282353329289005.tkk@misasa.okayama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: mattiase@acm.org, alan@idiocy.org, 50067@debbugs.gnu.org, larsi@gnus.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 24 19:26:22 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIaBo-0008k0-S4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 19:26:20 +0200 Original-Received: from localhost ([::1]:34388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIaBn-0006uW-OU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 13:26:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIaBW-0006sI-Pq for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 13:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIaBW-0003IU-I4 for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 13:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIaBW-0003SQ-AW for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Aug 2021 17:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50067-submit@debbugs.gnu.org id=B50067.162982594213262 (code B ref 50067); Tue, 24 Aug 2021 17:26:02 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 24 Aug 2021 17:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:45109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIaBB-0003Rq-SE for submit@debbugs.gnu.org; Tue, 24 Aug 2021 13:25:42 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:58051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIaB9-0003Ra-Ca for 50067@debbugs.gnu.org; Tue, 24 Aug 2021 13:25:40 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 17523C0006; Tue, 24 Aug 2021 17:25:27 +0000 (UTC) In-Reply-To: <20210824.191259.1858282353329289005.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Tue, 24 Aug 2021 19:12:59 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212558 Archived-At: > I started to understand the system. > A plug-in to list frames would be something like this. > I think it is good to have interface to basic utilities such for > recentf and bookmarks. > > (defun context-menu-frame (menu) There are endless possibilities in creating various submenus. So the default set of submenus is limited only to already existing menus: context-menu-toolbar copied from the tool-bar context-menu-global copied from the global menu-bar context-menu-local copied from the local menu-bar context-menu-minor copied from the minor-modes menu-bar context-menu-vc copied from the vc menu context-menu-undo copied from the Edit menu context-menu-region copied from the Edit menu So if you can find an existing menu, it could be added. But I can't find the existing menu with a list of frames. There are only the existing menu with a list of buffers like you proposed (mouse-buffer-menu-map) from [C-down-mouse-1], but better to use (mouse-buffer-menu-keymap), so now context-menu-buffers is added to the default list. The remaining existing menu is 'mouse-appearance-menu' bound to [S-down-mouse-1]. I don't know if it's significant enough to be added to the default list? Also you proposed a good idea to have a frame menu when right clicking on the title bar.