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#67457: 29.1; Error when dragging mode line in terminal Date: Sun, 26 Nov 2023 16:24:46 -0800 Message-ID: References: <756e757b61f27b310fdb2dc2567bee36@finder.org> <83r0kc9yu3.fsf@gnu.org> <878r6kcro6.fsf@gmail.com> <83o7fg9y2m.fsf@gnu.org> <8734wsdv7f.fsf@gmx.net> 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="15903"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 67457@debbugs.gnu.org, Visuwesh To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 27 01:25:18 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 1r7PR7-0003ul-5t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Nov 2023 01:25:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7PQp-0006X8-Fv; Sun, 26 Nov 2023 19:24:59 -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 1r7PQm-0006Wj-FK for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 19:24:57 -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 1r7PQm-0000b5-7q for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 19:24:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7PQr-0000oU-O4 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 19:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2023 00:25: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.17010446983112 (code B ref 67457); Mon, 27 Nov 2023 00:25:01 +0000 Original-Received: (at 67457) by debbugs.gnu.org; 27 Nov 2023 00:24:58 +0000 Original-Received: from localhost ([127.0.0.1]:42921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7PQo-0000o7-0Z for submit@debbugs.gnu.org; Sun, 26 Nov 2023 19:24:58 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:54312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7PQk-0000nu-76 for 67457@debbugs.gnu.org; Sun, 26 Nov 2023 19:24:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1701044687; bh=C1xZvS6lq6weGq4NdZZksj6eH10xFNAxK1Gv8avEFuQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WbklI9VtlKjmDC9TkQkz2Hz49RMYC0UI7co1CuMNECMKuCzULLcZ+ObXX+ABIQKHW fQsCM8wLkdLsXH1hZll7gvnUaXjGa2UISzaOGSzx3WIWVgCf3oLQQ0CK9hN1/lusUA peBDAbJMRKouWjhaq0e6emsW1dV3g4mGXV7q+AdA6aQqHNgqB5Kx8UiEVWMwUnTOoQ 4ntAbfabXwrO51Y+KRQ9AHZbQhOcRmvlP3rc7UZmfPF1aBIE8i4yhLYCKkys9UlmHS v0/43x4upmmz0BJ1RRmRjtmqQLlxKhOlKMq1usa1VOtqs3vyEwqaTjITTfjhlqSYge Iuudor7+qPIGw== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 1C7CF18E; Mon, 27 Nov 2023 00:24:47 +0000 (UTC) In-Reply-To: <8734wsdv7f.fsf@gmx.net> 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:275097 Archived-At: On 2023-11-26 14:08, Stephen Berman wrote: > On Sun, 26 Nov 2023 20:19:45 +0200 Eli Zaretskii wrote: > >>> From: Visuwesh >>> Cc: Jared Finder , 67457@debbugs.gnu.org >>> Date: Sun, 26 Nov 2023 23:39:45 +0530 >>> >>> [ஞாயிறு நவம்பர் 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. > >> 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 works fine, even if the tab line is visible. (GPM mouse mode is enabled by default) On HEAD (2407f8): Dragging the mode line does not work until I disable and re-enable GPM mouse mode. Then it works fine. This indicates two things to me: 1. My original patch is likely inaccurate. A better fix would be to align 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. -- MJF