GNU bug report logs - #46157
specific key detection prevents generic recognition of Ctrl+Backarrow in modifyOtherKeys mode

Previous Next

Package: emacs;

Reported by: Thomas Wolff <towo <at> computer.org>

Date: Thu, 28 Jan 2021 17:35:01 UTC

Severity: normal

Found in version 27.1

To reply to this bug, email your comments to 46157 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46157; Package emacs. (Thu, 28 Jan 2021 17:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Wolff <towo <at> computer.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 28 Jan 2021 17:35:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Wolff <towo <at> computer.org>
To: submit <at> debbugs.gnu.org
Subject: specific key detection prevents generic recognition of Ctrl+Backarrow
 in modifyOtherKeys mode
Date: Thu, 28 Jan 2021 18:33:54 +0100
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.




This bug report was last modified 3 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.