unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46157: specific key detection prevents generic recognition of Ctrl+Backarrow in modifyOtherKeys mode
@ 2021-01-28 17:33 Thomas Wolff
  0 siblings, 0 replies; only message in thread
From: Thomas Wolff @ 2021-01-28 17:33 UTC (permalink / raw)
  To: 46157

Package: emacs
Version: 27.1

In text mode, emacs uses modifyOtherKeys mode (as introduced by xterm) 
to distinguish non-character modifier+key combinations. However, some 
terminals (e.g. mintty) may implement a slightly extended version of 
modifyOtherKeys mode. Mintty uses it also for Ctrl+Backarrow (which 
xterm doesn't), so this combination will not be recognised by emacs, and 
rather garbage (partial escape sequence) will be entered.
Ref: mintty issue 
https://github.com/mintty/mintty/issues/1082#issuecomment-769021784

Suggestion: emacs should apply generic detection of modifyOtherKeys mode 
escape sequences, so that all of them will be interpreted properly. 
Ctrl+Backarrow (where Backarrow is mapped to DEL) may be a special case 
as Ctrl+DEL may not have a meaning in emacs, so the typical remapping to 
Backspace should be applied in this case. Vice versa for the case that 
Backarrow is mapped to Backspace.

Note: browsing emacs docs and help pages, I could not find out whether a 
workaround is possible, something like
(global-set-key "\e[127;5u" ...) which does not work. Some notes on how 
to rebind unknown escape sequences should be added; in case that's not 
possible, the functionality should be added.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-28 17:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 17:33 bug#46157: specific key detection prevents generic recognition of Ctrl+Backarrow in modifyOtherKeys mode Thomas Wolff

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).