From: Jared Finder via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: git@vladimir.panteleev.md, 61022@debbugs.gnu.org
Subject: bug#61022: 28.2.50; Mouse tracking of high coordinates not working in rxvt-unicode
Date: Mon, 23 Jan 2023 22:56:09 -0800 [thread overview]
Message-ID: <6f9506a6b306d47ef6064747c4cecb75@finder.org> (raw)
In-Reply-To: <83y1ptie7y.fsf@gnu.org>
On 2023-01-23 5:15 am, Eli Zaretskii wrote:
>> From: git@vladimir.panteleev.md
>> Date: Sun, 22 Jan 2023 19:36:50 +0000
>>
>> For some reason, xt-mouse with xterm-mouse-utf-8 on isn't working for
>> me
>> under rxvt-unicode. I assume it worked at some point, but it's not
>> working now.
>>
...
>> Reproducer:
>>
>> - Run urxvt
>> - In it, run emacs -Q -nw
>> - M-: (require 'xt-mouse)
>> - M-: (setq xterm-mouse-utf-8 t)
>> - M-x xterm-mouse-mode
>> - Make sure the window is wider than 96 lines or columns
>> - Move the mouse around past the 96th line or column
>>
>> Hope this helps.
>
> Jared, any comments?
>
> Thanks.
The change mostly works as inherit-input-method also causes UTF-8
decoding to happen deep in read_char at the C level. (Is this
intentional? I assume so because read-char just reads single bytes
normally.) However, I think the following change is more appropriate:
- (read-char nil nil 0.1))
+ ;; Read a character with input method conversion enabled
+ ;; but no conversion to force read-char to decode UTF-8
+ ;; byte sequences.
+ (let ((input-method-function nil))
+ (read-char nil t 0.1)))
This way we don't apply an actual input method conversion to characters.
For example, without this additional change, if the 'british input
method was active, the # ==> £ conversion would
happen, causing mouse events with X=2 to instead have X=131.
I verified this works for me locally.
-- MJF
next prev parent reply other threads:[~2023-01-24 6:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-22 19:36 bug#61022: 28.2.50; Mouse tracking of high coordinates not working in rxvt-unicode git
2023-01-23 13:15 ` Eli Zaretskii
2023-01-24 6:56 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-01-24 12:24 ` Eli Zaretskii
2023-01-25 5:09 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-26 8:57 ` Eli Zaretskii
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=6f9506a6b306d47ef6064747c4cecb75@finder.org \
--to=bug-gnu-emacs@gnu.org \
--cc=61022@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=git@vladimir.panteleev.md \
--cc=jared@finder.org \
/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.