From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#67457: 29.1; Error when dragging mode line in terminal Date: Mon, 27 Nov 2023 10:05:02 +0100 Message-ID: <87h6l7sh1d.fsf@gmx.net> References: <756e757b61f27b310fdb2dc2567bee36@finder.org> <83r0kc9yu3.fsf@gnu.org> <878r6kcro6.fsf@gmail.com> <83o7fg9y2m.fsf@gnu.org> <8734wsdv7f.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 67457@debbugs.gnu.org, Visuwesh To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 27 10:06:19 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 1r7XZK-0006kl-Ga for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Nov 2023 10:06:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7XZ4-0000UU-OD; Mon, 27 Nov 2023 04:06:02 -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 1r7XZ1-0000Sf-MY for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 04:05:59 -0500 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 1r7XYx-0001qD-Rx for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 04:05:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7XZ4-0006QU-0c for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 04:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2023 09:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67457 X-GNU-PR-Package: emacs Original-Received: via spool by 67457-submit@debbugs.gnu.org id=B67457.170107592324659 (code B ref 67457); Mon, 27 Nov 2023 09:06:01 +0000 Original-Received: (at 67457) by debbugs.gnu.org; 27 Nov 2023 09:05:23 +0000 Original-Received: from localhost ([127.0.0.1]:43210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7XYR-0006Pe-37 for submit@debbugs.gnu.org; Mon, 27 Nov 2023 04:05:23 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:38565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7XYN-0006PN-Vp for 67457@debbugs.gnu.org; Mon, 27 Nov 2023 04:05:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1701075904; x=1701680704; i=stephen.berman@gmx.net; bh=GqbbVtMjKc+TLCO8zh85d7+6DpANESSsE9y6NB1S2O0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=ASKZr7u5E4Kwoe8EvkDxPlQM/Qxeethk+pKSKI400JJyKQSeHU5OhsmAI3Zm+LP6 8BZA3/1D/6FDZt1tDQlKoe5Nu3OhnfSbKb/2O7Yes9oxVhYEj39fYKVk/qxEskQLu LurJ+7nc2kxtAApBXsVRFKxAy7YONxrEiPCPRV5APxS0nI89SG74FRexyLu2ueepK 21KHNKHwnKloNPFxb0TYcMWaivtPB9dI4EQdguw3WJ7MOmnYJAEVgjRGWQD34KYjF mB2/osVOzAsSKHCZbtviU115v0OieO+w5K8qhTOrBTXrtUpiWmtGMzME+Ms0J7fSG q1ONOiQnNKVizQV5Xg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs2 ([89.246.37.249]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MSt8Q-1qikcb351q-00UGQK; Mon, 27 Nov 2023 10:05:03 +0100 In-Reply-To: (Jared Finder's message of "Sun, 26 Nov 2023 16:24:46 -0800") X-Provags-ID: V03:K1:FSMtsCaRMUhd+m5cjkXn52XisNeUhr8zVyGRGtoiWyACXp2dun1 /pOBNnEksLeMCU1skyLnE9Yqs714iXQq1QFXp3HJm87KFLOc+doCF/WdrZGw8phc/gmAE3i ibJ+N25cTBvhfYgW6qSMXXWUd6EiP2TObBSEzG1CTcPVawaER70kh7VeELftQNY+h2nI7Z8 BTi1JGL/h4gSmr+deiXGw== UI-OutboundReport: notjunk:1;M01:P0:xT4rnP8OUE4=;Kr4PxbxLzo6RHD6bjmHXJx1pHSP 0qafzIvriaca1h0eI1mGaMZEsPZjao6+NViux39ashvhrFQMavloA6tzzkS0K/9BPNWxT5Dev Uynazq2WrCRBRQHV7hRXkFd641WU65KxUSo3BAlg8zq4Deg+dVjA7LjQfIk8RbaIzfcA8U4gg jVUVh6haSZCyRz2EPWIMPD/E4YBVQ3NdoaAX76O5iGWZ7qR4BbrKOarbnruNNQZdXN2Kw7T12 KVIzF25DmCa0p0e7KvUgr/E+kL08Ar6fV8WOKDXrb5Mx2Q+mquF530yszNqlrf6SOEbmSnRIw Y8J9TJN/2WFUga931XiHrPwirvh4xtdFs4/wpwU/L+1eaMaqcorHUFXL5TFbHAatHbzkskt5M iHpymmvTRF2oshngYEcKOlCp8peozhU+wdBiThmZ68rUgiSPlnoRkh0NHPtH4SSmAVCmfT8r4 FO+N/leUp173ln0vOwZ5ltsQbGtbMSJovI1EoaLyvW7FgybnRnlbIJ/Qf06Inf4j41eSwrSf4 U5X+WBtXGyjCqSMEQJKZNXDevVNtVEtnIt7tTA3IwFWRKGRKxOOlxdaxRvPhzDFY2WJ0QpQ1K I65fVXc2HnRde9YkFfVvuqVJLaV+n69D/7WYk6u0xf3TXdjAH2W1snzMFOHHZLYhoOfUM1LSa 4dW79c8t7Anw6H90mR45An8+pcuxRopiHplcPnJ/cQnZHx9Kp3jQfUlq/uDxU6PsIpdxi0EJo IuxjKzuaheo0l8pKJgz8tuonUwgTx80RzDIysTjOWPClMgwuUNTTfZYp5tHWVEMDafZgueuh 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:275110 Archived-At: On Sun, 26 Nov 2023 16:24:46 -0800 Jared Finder wrote: > On 2023-11-26 14:08, Stephen Berman wrote: >> On Sun, 26 Nov 2023 20:19:45 +0200 Eli Zaretskii wrote: >>=20 >>>> From: Visuwesh >>>> Cc: Jared Finder , 67457@debbugs.gnu.org >>>> Date: Sun, 26 Nov 2023 23:39:45 +0530 >>>> [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=A8=E0= =AE=B5=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 26, 2023] Eli Zaretskii= wrote: >>>> >> Date: Sun, 26 Nov 2023 09:31:26 -0800 >>>> >> From: Jared Finder via "Bug reports for GNU Emacs, >>>> >> the Swiss army knife of text editors" >>>> >> >>>> >> When in a terminal with the tab-line showing and mouse enabled, the >>>> >> following error in shown when dragging the mode line down: >>>> >> >>>> >> is undefined >>>> > >>>> > Thanks, but I cannot reproduce this, at least not on MS-Windows (I >>>> > don't have access to a Posix system with a mouse-capable text >>>> > terminal). >>>> I can reproduce this in xterm in master branch commit >>>> 2fca889cfb4fa495a6ffa0c7fe368551ee9a32bc. >>> Thanks. >>> And the fix solves the problem? >> I can also reproduce the problem on GNU/Linux with emacs-29 and master, >> and the fix works for me. >>=20 >>> Does anyone have a Linux terminal with GPM mouse and can test there? >> I do and after splitting the window and enabling gpm-mouse-mode I can't >> drag the mode line with GPM mouse at all, whether global-tab-line is >> enabled or not (on emacs-29 and master), and there are no errors or >> other notifications in *Messages*. Is dragging the mode line >> supposed to work in the Linux terminal with GPM mouse? > > I also have a GPM mouse available and I see different behavior. > > On Emacs 28.2 (installed from Debian package): Dragging the mode line wor= ks > fine, even if the tab line is visible. (GPM mouse mode is enabled by defa= ult) > > On HEAD (2407f8): Dragging the mode line does not work until I disable and > re-enable GPM mouse mode. Then it works fine. I can now confirm this (and see the same on the emacs-29 branch as on master; I can't currently test emacs-28). My previous report was erroneous: I had never used (or even heard of) gpm-mouse-mode before reading this bug thread, and didn't realize it was enabled by default, so all I had done was to disable it; on re-enabling it, dragging works as Jared reported, both without and with the tab line. > This indicates two things to me: > > 1. My original patch is likely inaccurate. A better fix would be to alig= n the > mouse-movement event with how it is emitted under GPM and DOS. I will > investigate. > > 2. Something broke with how GPM mouse mode is enabled between Emacs 28.2 = and > HEAD. I can help with a bisect here. As noted, I see the same behavior on master and emacs-29, so it may be quicker to use the latter for bisecting (I cannot help with that for the time being, sorry). Steve Berman