[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Context menus and mouse-3 [was: Changes for emacs 28]
From: |
Tak Kunihiro |
Subject: |
Re: Context menus and mouse-3 [was: Changes for emacs 28] |
Date: |
Sat, 19 Sep 2020 17:02:01 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
I think framework of context menu should be provided by Emacs,
as suggested three years ago by Stefan.
https://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00416.html
I propose a system something like below.
A list for menu candidates is defined in advance. After first one is
evaluated, then it returns menu or nil. When it is menu, we pop menu
up. When it is nil, the second one is evaluated. The last one should
always return menu.
(defvar mouse-context-menu-functions
'(mouse-help-menu ; HELP menu
mouse-info-menu ; INFO menu
mouse-file-menu ; FILE menu
mouse-dir-menu ; DIR menu
mouse-word-menu ; WORD menu
mouse-url-menu ; URL menu
menu-bar-edit-menu ; EDIT menu (default))
"Function that builds the context-menu.
Takes one argument (the EVENT that requests the menu) and should return
a list of menu items or nil")
- Re: Context menus and mouse-3 [was: Changes for emacs 28], (continued)
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Drew Adams, 2020/09/14
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Eli Zaretskii, 2020/09/14
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Drew Adams, 2020/09/14
- Re: Context menus and mouse-3 [was: Changes for emacs 28], tomas, 2020/09/14
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Richard Stallman, 2020/09/15
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Stefan Monnier, 2020/09/15
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Tak Kunihiro, 2020/09/19
- Re: Context menus and mouse-3 [was: Changes for emacs 28],
Tak Kunihiro <=
Re: Context menus and mouse-3 [was: Changes for emacs 28], Eli Zaretskii, 2020/09/14
Re: Context menus and mouse-3 [was: Changes for emacs 28], Göktuğ Kayaalp, 2020/09/14
- Re: Context menus and mouse-3 [was: Changes for emacs 28], tomas, 2020/09/14
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Drew Adams, 2020/09/14
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Juri Linkov, 2020/09/15
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Drew Adams, 2020/09/15
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Ergus, 2020/09/15
- Re: Context menus and mouse-3 [was: Changes for emacs 28], Corwin Brust, 2020/09/15
- RE: Context menus and mouse-3 [was: Changes for emacs 28], Drew Adams, 2020/09/15