From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61022: 28.2.50; Mouse tracking of high coordinates not working in rxvt-unicode Date: Mon, 23 Jan 2023 15:15:45 +0200 Message-ID: <83y1ptie7y.fsf@gnu.org> References: <87sfg2nyy5.fsf@home.thecybershadow.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24678"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61022@debbugs.gnu.org To: git@vladimir.panteleev.md, Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 23 14:16:34 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJwgc-0006F7-Iz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Jan 2023 14:16:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJwgI-0006d4-Gl; Mon, 23 Jan 2023 08:16:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwg6-0006c8-Lq for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJwg6-0006ur-Dq for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJwg6-0006UZ-0s for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jan 2023 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61022 X-GNU-PR-Package: emacs Original-Received: via spool by 61022-submit@debbugs.gnu.org id=B61022.167447974624932 (code B ref 61022); Mon, 23 Jan 2023 13:16:01 +0000 Original-Received: (at 61022) by debbugs.gnu.org; 23 Jan 2023 13:15:46 +0000 Original-Received: from localhost ([127.0.0.1]:53630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwfq-0006U4-B5 for submit@debbugs.gnu.org; Mon, 23 Jan 2023 08:15:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwfo-0006Tq-A5 for 61022@debbugs.gnu.org; Mon, 23 Jan 2023 08:15:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwfh-0006sF-MW; Mon, 23 Jan 2023 08:15:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jH75B/Tdp4rjk90IZA2b06P5zvVv5/wL1hdlhuh2xNs=; b=pa1SQd4GiLuN 75Y0rmNllGuGg2nWq6w//yWi4FW67JoI1XLEpbdYM0MznAt7goDV+IEVT5DuUUSH2YtdzklnRwypw CnWt/Ks3YPvQR+sqnexR0yQuIv4yazR8IF6/QKexTSDPKtqTPgLnCfUiJBY0T/bI6F3zz6VvGNyNx zJSbgZckp1iKWd5itfcXPjSP/WqQ7bQduJnQGMaqxOinpW0ZXulNFNfvZHJnQs7XsvdETM4RQ6dE1 S+qIhbRMyJo6BKbYRl6er6drtZrR+fryUk1TX7MBtL4DBz6SR2n3Tca7XPgFmmj35mcmmDAIub1FQ l/BSo3eTUwqwg/Md77S7Aw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwfh-0002ju-6X; Mon, 23 Jan 2023 08:15:37 -0500 In-Reply-To: <87sfg2nyy5.fsf@home.thecybershadow.net> (git@vladimir.panteleev.md) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253993 Archived-At: > 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. > > I investigated it a little and it looks like the (read-char nil nil 0.1) > call is no longer reading an entire UTF-8 character unless the > inherit-input-method argument is non-nil. I don't know why that is. > But, in any case, this patch fixes it for me: > > ---------------------------------------------------------------------- > >From 32e4b5ab67006ed08c853396686315ed373691be Mon Sep 17 00:00:00 2001 > From: Vladimir Panteleev > Date: Sun, 22 Jan 2023 18:54:05 +0000 > Subject: [PATCH] Fix xterm mouse tracking of high coordinates with > xterm-mouse-utf-8 > > read-char now needs inherit-input-method to be non-nil for it to read > a whole UTF-8 code point, even with set-keyboard-coding-system. > > * lisp/xt-mouse.el (xterm-mouse--read-coordinate): Call read-char with > inherit-input-method as t. > --- > lisp/xt-mouse.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el > index adfa480bc0f..2b6b448305e 100644 > --- a/lisp/xt-mouse.el > +++ b/lisp/xt-mouse.el > @@ -160,7 +160,7 @@ xterm-mouse--read-coordinate > 'no-conversion)) > ;; Wait only a little; we assume that the entire escape sequence > ;; has already been sent when this function is called. > - (read-char nil nil 0.1)) > + (read-char nil t 0.1)) > (set-keyboard-coding-system previous-keyboard-coding-system)))) > > ;; In default mode, each numeric parameter of XTerm's mouse report is > -- > 2.38.1 > ---------------------------------------------------------------------- > > 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.