From: Stephen Berman <stephen.berman@gmx.net>
To: Jared Finder <jared@finder.org>
Cc: Eli Zaretskii <eliz@gnu.org>,
67457@debbugs.gnu.org, Visuwesh <visuweshm@gmail.com>
Subject: bug#67457: 29.1; Error when dragging mode line in terminal
Date: Mon, 27 Nov 2023 10:05:02 +0100 [thread overview]
Message-ID: <87h6l7sh1d.fsf@gmx.net> (raw)
In-Reply-To: <aa12406b716589ea6b36c065ec727164@finder.org> (Jared Finder's message of "Sun, 26 Nov 2023 16:24:46 -0800")
On Sun, 26 Nov 2023 16:24:46 -0800 Jared Finder <jared@finder.org> wrote:
> On 2023-11-26 14:08, Stephen Berman wrote:
>> On Sun, 26 Nov 2023 20:19:45 +0200 Eli Zaretskii <eliz@gnu.org> wrote:
>>
>>>> From: Visuwesh <visuweshm@gmail.com>
>>>> Cc: Jared Finder <jared@finder.org>, 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" <bug-gnu-emacs@gnu.org>
>>>> >>
>>>> >> When in a terminal with the tab-line showing and mouse enabled, the
>>>> >> following error in shown when dragging the mode line down:
>>>> >>
>>>> >> <tab-line> <mouse-movement> 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.
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 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.
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
next prev parent reply other threads:[~2023-11-27 9:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-26 17:31 bug#67457: 29.1; Error when dragging mode line in terminal Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-26 18:03 ` Eli Zaretskii
2023-11-26 18:09 ` Visuwesh
2023-11-26 18:19 ` Eli Zaretskii
2023-11-26 22:08 ` Stephen Berman
2023-11-27 0:24 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-27 9:05 ` Stephen Berman [this message]
2023-11-27 12:37 ` Eli Zaretskii
2023-11-27 15:16 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-27 16:34 ` Eli Zaretskii
2023-12-06 23:55 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-07 22:35 ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-08 16:18 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-09 8:19 ` 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=87h6l7sh1d.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=67457@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=jared@finder.org \
--cc=visuweshm@gmail.com \
/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.