From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73469: 29.4; mouse passing on terminal window generates events Date: Sat, 28 Sep 2024 10:50:53 -0700 Message-ID: <061a28e3635baae59f37a94bbe37d295@finder.org> References: <861q17d9f0.fsf@gnu.org> <86plop8kbk.fsf@gnu.org> Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2391"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Francesco =?UTF-8?Q?Potort=C3=AC?= , 73469@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 28 19:51:56 2024 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 1subbn-0000S6-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Sep 2024 19:51:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1subbT-0005CF-43; Sat, 28 Sep 2024 13:51:35 -0400 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 1subbR-0005C4-TH for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 13:51:33 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1subbR-00019L-J1 for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 13:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=jV5JRDfH2YdB9Znz2hHrGEL8Ldw+xtDHHL/nmaD0nvw=; b=TRT6/vDqJlqWcPiSzAm4ABiGeYFa3b51y4hAL0z3CBjYH//wpo6z9GiVk7taM3WD7DL4WLxQnaJtv6Qw+JGQmtOH7+SlGKJ0VOFrRCk5V4JCVwXLHjANCENkGr3ktji5oK1lbmYpviAm1TFdazB4QefNiDdWsYBIg7/RHaNfv5Tbe6hIaMpdxCYQxu/IjoqGimyrSHLkHWWO6ppGrX38z+MacN9VgBxOPgN7aptByM1dPHToHhIwwFYZhmdJNS7ZWIM5G4oVzZNzwrqckq/cqgKO2q3TlxJGXOLXYbHTeYswrV7CwPLzvv6yNs+qEF03QgRC2oYTGeZNKlZPC6UVTQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1subbu-0008A8-NP for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 13:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Sep 2024 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73469 X-GNU-PR-Package: emacs Original-Received: via spool by 73469-submit@debbugs.gnu.org id=B73469.172754589431192 (code B ref 73469); Sat, 28 Sep 2024 17:52:02 +0000 Original-Received: (at 73469) by debbugs.gnu.org; 28 Sep 2024 17:51:34 +0000 Original-Received: from localhost ([127.0.0.1]:38611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1subbS-000872-CJ for submit@debbugs.gnu.org; Sat, 28 Sep 2024 13:51:34 -0400 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:48180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1subbI-00086m-JU for 73469@debbugs.gnu.org; Sat, 28 Sep 2024 13:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1727545853; bh=/AYHs7tIquvj9g7Gy33ZFNPoPxkibYr1Doo9CneITj8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=3ARsA2BdW6oH4C4TDDkAcmxtruj2BHOhW+gmVUuwzbJTwHQ8oWBPySAKlvLmQLS0E J2Uy6Qn886YXCR66yCBVsKt1fMwDpq8rIw4rOPoaKnPBBWMp+1hqxWPfVV2dlkJMif KnGJN4sZoO3miy/8M7sZ3GCBuCgLFnFiGcLJxkNCW8RiXQYC1fDL6ESOsxckosS23P L6ZCln8CDXWBFWmErkOHc4gZdBi5QjekrPmAcdNh9TAYv34n7h+i/ZK72YTN4TIvjO xdkNIFAx8dFz86ByZLiB04FeeFMLNo1maKLrHwiMx6BOom1Kndfin+WvlB7VaEyTPS rPD0A1Hk7U9kg== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 547451DB5; Sat, 28 Sep 2024 17:50:53 +0000 (UTC) In-Reply-To: <86plop8kbk.fsf@gnu.org> X-Sender: jared@finder.org 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:292595 Archived-At: On 2024-09-27 03:25, Eli Zaretskii wrote: >> From: Francesco Potortì >> Date: Fri, 27 Sep 2024 09:48:24 +0200 >> Cc: 73469@debbugs.gnu.org >> >> I have found the culprit: it is xterm-mouse-mode. Could you please reshare the lossage, making sure you are moving the mouse around over an otherwise empty buffer and not holding any modifiers or mouse buttons? I saw in the original bug report that the report included lossage containing lines like ESC [ M 3 5 ; C- 1 2 0 ; 2 1 M There are two things that are surprising here, hence my ask for fresh logs: The most surprising thing is the "ESC [ M" prefix. My read of https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-X10-compatibility-mode is that prefix indicates a three byte mouse state should follow but it appears that (if I ignore the C- in the middle) this is actually an SGR mouse state. However, SGR mouse state is supposed to be reported with an "ESC [ <" prefix and end with "M" only if a mouse button is down. If no mouse button is down, it should end with "m". The C- in the middle is surprising as well, though I'm noticing it's always exactly three bytes after the "ESC [ M prefix". For comparison, my M-x view lossage for an emacs -Q -nw invocation where I enable xterm-mouse-mode and then move the mouse around over an empty buffer looks like this: ; 2 m ESC [ < 3 5 ; 3 1 ; 2 m ESC [ < 3 5 ; 3 0 ; 2 m ESC [ < 3 5 ; 2 9 ; 2 m ESC [ < 3 5 ; 2 8 ; 2 m ESC [ < 3 5 ; 2 7 ; 2 m ESC [ < 3 5 ; 2 6 ; 2 m ESC [ < 3 5 ; 2 6 ; 3 m ESC [ < 3 5 ; 2 5 ; 3 m ESC [ < 3 5 ; 2 5 ; 4 m ESC [ < 3 5 ; 2 6 ; 4 m ESC [ < 3 5 ; 2 6 ; 5 m ESC [ < 3 5 ; 2 7 ; 5 m ESC [ < 3 5 ; 2 8 ; 6 m ESC [ < 3 5 ; 2 9 ; 6 m ESC [ < 3 5 ; 3 0 ; 6 m ESC [ < 3 5 ; 3 1 ; 6 m ESC [ < 3 5 ; 3 2 ; 6 m ESC [ < 3 5 ; 3 3 ; 6 m ESC [ < 3 5 ; 3 4 ; 5 m ESC [ < 3 5 ; 3 5 ; 5 m ESC [ < 3 5 ; 3 5 ; 4 m ESC [ < 3 5 ; 3 6 ; 4 m ESC [ < 3 5 ; 3 6 ; 3 m ESC [ < 3 5 ; 3 6 ; 2 m ESC x ;; exe cute-extended-command -- MJF