all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Juri Linkov <juri@linkov.net>, Eli Zaretskii <eliz@gnu.org>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: New Context Menu
Date: Tue, 24 Aug 2021 22:48:27 +0200	[thread overview]
Message-ID: <20210824204827.deazoohrb7e4ydld@Ergus> (raw)
In-Reply-To: <CAP_d_8W5POVbWQOj6SnLGRNodz+GQzsOcwF5m7_xqAXRdrJT_A@mail.gmail.com>

On Wed, Aug 25, 2021 at 02:41:56AM +0700, Yuri Khan wrote:
>On Tue, 24 Aug 2021 at 23:06, Ergus <spacibba@aol.com> wrote:
>
>> It is not wrong actually. Because keys like [menu] require an
>> alternative for those that don't have such a key. That's why in some
>> emulators they are the same sequence than some other complex
>> combinations like S-<f6> or C-S-<f6>; or some keys not present in our
>> keyboards anymore (like <f15>) but can be emulated with combinations.
>
>The alternative for people who don’t have Menu is Shift+F10. Has been
>since Windows 95 and is adopted by GTK applications. And wxWidgets
>applications. And maybe other X toolkits as well.
>
>Shift+F6 is “go to previous pane” in Windows guidelines. Leave that
>for people who want an easier key than C-- C-x o.
>
Shift+F6 is unbound by default. Any way I can live with that but rxvt
will sacrifice an extra binding.

>What I’m opposed to is doing things in an application to cover for a
>design flaw in a single terminal emulator.
>
I don't care a design flaw while there is some design. Having [menu]
bound in gui and see the same key as [print] in xterm is just
inconsistent and a waste of a valuable key.

>> >* Push for terminfo to include a string capability that indicates the
>> >sequence sent by the Menu key. Push for the terminfo database to
>> >include that capability for major terminal emulators.
>> >
>> I already discussed this with the xterm developer, but the current
>> translation is direct and does not rely on tricks in the emulator
>> side. Xterm actually can distinguish between them, but I can't force
>> every emacs user to use xterm because it is very limited in many
>> aspects.
>
>How is it direct?
xev

> The evdev keycode <MENU> is 135. CSI 2 9 ~ is the
>VT220 sequence for F16; in evdev, <FK16> is 194.
>
>(F16 also somewhat explains rxvt’s Shift+F6, by pretending Shift+F<n>
>is F<10+n>. Still wrong, because there are 12 function keys! Also
>because one can build a keyboard that has both F16 and Menu, as USB
>HID Tables assign different codes to these.)
>
>> Actually the recommended terminal emulator to work with emacs is
>> xterm. It is the most compatible and actually was a topic of a previous
>> discussion/question I did long time ago.
>
>The most compatible with what? VT220? Not relevant nowadays.
>
The most compatible with everything in emacs out of the box; tmux; fancy
combinations and so on. Emacs gave me too many problems with bindings
when I tried to use it in other terminal emulators. (and the list is
veeery long)

>PC keyboard that most everybody has on their desk? No.
>
Totally disagree here.

>> xterm allows to distinguish between S-<f6> and the [menu] sequence, they
>> are different. But urxvt and many others don't; so that will imply that
>> in urxvt, the context menu will take at least 3 keys when bound to
>> [S-f10]. Because binding to [menu] will also take [S-f6]. That's what I
>> want to avoid. Also because S-<f10> is already taken.
>
>To avoid having Menu take Shift+F6, get rxvt to use different
>sequences for Menu and Shift+F6.

rxvt has many other worst compatibility issues than this and requires a
lot of customization to work decently with emacs... so your explication
of Shift+F<n> clarifies a lot.




  reply	other threads:[~2021-08-24 20:48 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210818120834.i3orh535tb2enpos.ref@Ergus>
2021-08-18 12:08 ` New Context Menu Ergus
2021-08-18 12:26   ` Eli Zaretskii
2021-08-18 12:43     ` Ergus
2021-08-18 13:30       ` Eli Zaretskii
2021-08-18 17:17         ` Ergus
2021-08-18 17:21           ` Eli Zaretskii
2021-08-18 17:32             ` Ergus
2021-08-18 16:50       ` Eli Zaretskii
2021-08-18 18:10         ` Ergus
2021-08-18 18:17           ` Eli Zaretskii
2021-08-18 19:23             ` Ergus
2021-08-18 19:28               ` Eli Zaretskii
2021-08-18 19:53                 ` Ergus
2021-08-19  6:31                   ` Eli Zaretskii
2021-08-19  7:07                     ` Juri Linkov
2021-08-18 19:34               ` Eli Zaretskii
2021-08-18 18:58         ` Juri Linkov
2021-08-18 19:12           ` Eli Zaretskii
2021-08-19  7:05             ` Juri Linkov
2021-08-19  7:51               ` Eli Zaretskii
2021-08-20  7:13                 ` Juri Linkov
2021-08-20 11:26                   ` Eli Zaretskii
2021-08-20 11:41                     ` Eli Zaretskii
2021-08-20 16:44                       ` Juri Linkov
2021-08-20 12:26                     ` Ergus
2021-08-20 12:36                       ` Eli Zaretskii
2021-08-20 12:59                         ` Ergus
2021-08-20 13:03                         ` Ergus
2021-08-20 13:34                           ` Eli Zaretskii
2021-08-20 17:36                             ` Ergus
2021-08-20 18:05                               ` Eli Zaretskii
2021-08-20 18:08                                 ` Ergus
2021-08-20 19:07                                   ` Eli Zaretskii
2021-08-21  6:20                                     ` Ergus
2021-08-21  6:53                                       ` Eli Zaretskii
2021-08-21 15:04                                         ` Ergus
2021-08-20 18:15                                 ` Ergus
2021-08-20 23:15                                   ` Michael Welsh Duggan
2021-08-18 14:04   ` Jean-Christophe Helary
2021-08-18 16:38     ` Iñigo Serna
2021-08-19  0:38       ` Jean-Christophe Helary
2021-08-19  7:08         ` Juri Linkov
2021-08-19 14:22           ` Jean-Christophe Helary
2021-08-19  7:01   ` Juri Linkov
2021-08-19  8:03     ` Eli Zaretskii
2021-08-19 14:11       ` Ergus
2021-08-19 15:48         ` Eli Zaretskii
2021-08-19 16:34           ` Yuri Khan
2021-08-20  7:14       ` Juri Linkov
2021-08-20 11:29         ` Eli Zaretskii
2021-08-20 16:49           ` Juri Linkov
2021-08-20 18:01             ` Eli Zaretskii
2021-08-23  7:33               ` Juri Linkov
2021-08-23 11:36                 ` Eli Zaretskii
2021-08-23 16:04                   ` Juri Linkov
2021-08-23 16:35                     ` Eli Zaretskii
2021-08-23 17:42                       ` Juri Linkov
2021-08-23 18:02                         ` Ergus
2021-08-24  6:35                           ` Juri Linkov
2021-08-24  8:00                             ` Ergus
2021-08-24 11:44                               ` Yuri Khan
2021-08-24 16:05                                 ` Ergus
2021-08-24 19:41                                   ` Yuri Khan
2021-08-24 20:48                                     ` Ergus [this message]
2021-08-19 13:57     ` Ergus
2021-08-20  7:24       ` Juri Linkov
2021-08-20 12:21         ` Ergus
2021-08-20 16:41           ` Juri Linkov
2021-08-21  4:33             ` Ergus via Emacs development discussions.
2021-08-22  8:56               ` Juri Linkov
2021-08-27  6:21   ` New Context Menu and mouse-1 Juri Linkov
2021-08-27  6:55     ` Eli Zaretskii
2021-08-27 17:03       ` Juri Linkov
2021-08-27 22:01         ` Stefan Monnier
2021-08-28 18:52           ` Juri Linkov
2021-08-29 16:53           ` Juri Linkov
2021-08-30  7:22             ` Juri Linkov
2021-08-30 12:54               ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210824204827.deazoohrb7e4ydld@Ergus \
    --to=spacibba@aol.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.