emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Context Menu


From: Ergus
Subject: Re: New Context Menu
Date: Tue, 24 Aug 2021 10:00:04 +0200

On Tue, Aug 24, 2021 at 09:35:07AM +0300, Juri Linkov wrote:
I am still asking about the issues with the menu key in xterm; in the
other thread I showed this:

lk201.el:35:    (define-key map "\e[29~" [menu])
rxvt.el:67:    (define-key map "\e[29~" [S-f6])
xterm.el:353:    (define-key map "\e[29~" [print])

where "\e[29~" is the sequence the menu key sends. So maybe you could
use [S-f6] instead?

That will make it work out of the box in urxvt.

I installed urxvt, and in urxvt started
emacs -Q -nw -f xterm-mouse-mode -f context-menu-mode
Then typed S-<f10>.  It opened the Context menu
with blue background where the selected item is red.
Then using arrows and C-n/C-p navigated to "Paste"
and typed RET, and it pasted a string at point.
All other menu items are also working fine on urxvt.
So it seems that your config is broken.

Hi Juri:

Maybe I miss explained myself. The idea to put it in [S-f6] is to make
the context menu work with the [menu] button out of the box when
available in urxvt (and on xterm if fixed).

Of course S-<f10> works as expected. The point is that the menu key is
the "right place" for it to make it more "similar" to other applications
around. And such key is "under-utilized" by us at the moment. (Nobody
even noticed it wrongly bound in xterm)

Also because S-<f10> is menu-bar-open, that may be useful for some
people, but S-<f6> is unused. SO as you say: it is a win win ;).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]