GNU bug report logs -
#29150
26.0.90; Input decoding is sometimes skipped in TTY (xterm-mouse-mode)
Previous Next
Reported by: Alex <agrambot <at> gmail.com>
Date: Sun, 5 Nov 2017 07:43:02 UTC
Severity: normal
Tags: patch
Found in version 26.0.90
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Olaf Rogalsky <olaf.rogalsky <at> t-online.de> writes:
> Hi,
Hi,
Thanks for looking into this. It looks like the only issue remaining is
#2 (M-mouse-1).
> PSS: I don't think, that #29143 is related. Both, `Evil-mode' *and*
> `xterm-mouse-mode' fool around with the ?\e prefix in the
> `input-decode-map', but they obviously do it in an incompatible
> way.
It's not that. I checked out evil-mode's code and found out that it uses
a modified ~6 year old version of `mouse-drag-track', which evidently
doesn't play too well with recent Emacs versions.
For example, try using the definitions of `mouse-drag-region' and
`mouse-drag-track' of Emacs 24 in Emacs 25/26. Then in
`xterm-mouse-mode', releasing `mouse-1' inserts the control sequence
into the current buffer (which is what Bug#29143 is, except in
evil-mode, the characters in the sequence are not all bound to
`self-insert-command').
This old code uses `read-event', which, as you mentioned in your other
reply, doesn't use `input-decode-map'. Replacing it with:
(aref (read-key-sequence-vector nil) 0)
fixes Bug#29143.
Eli, Stefan, does it make sense that `read-event' doesn't take into
account `input-decode-map'? If so, then is there a better alternative to
the above workaround? Perhaps there could be a new optional argument to
`read-event'?
This bug report was last modified 4 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.