GNU bug report logs - #60652
30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes?

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sun, 8 Jan 2023 10:41:02 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 60652 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60652; Package emacs. (Sun, 08 Jan 2023 10:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mickey Petersen <mickey <at> masteringemacs.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 08 Jan 2023 10:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the
 undo ring... sometimes?
Date: Sun, 08 Jan 2023 10:40:40 +0000
Steps to somewhat reliably reproduce it:

1. Enable `treesit-inspect-mode' in a valid buffer.
2. Do some light editing, and sometimes the undo ring will reset itself to just the previous undone state and the current one. In effect turning what was a history of undo events into two.

Sadly, I have little more than this to go on.


In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version
 3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work
Repository revision: c209802f7b3721a1b95113290934a23fee88f678
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: Ubuntu 20.04.3 LTS

Configured using:
 'configure --with-native-compilation --with-json --with-mailutils
 --without-compress-install --with-imagemagick CC=gcc-10'





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60652; Package emacs. (Mon, 09 Jan 2023 03:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 60652 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Mickey Petersen <mickey <at> masteringemacs.org>
Cc: 60652 <at> debbugs.gnu.org
Subject: Re: bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems  to
 break the undo ring... sometimes?
Date: Sun, 8 Jan 2023 19:27:02 -0800
Mickey Petersen <mickey <at> masteringemacs.org> writes:

> Steps to somewhat reliably reproduce it:
>
> 1. Enable `treesit-inspect-mode' in a valid buffer.
> 2. Do some light editing, and sometimes the undo ring will reset
> itself to just the previous undone state and the current one. In
> effect turning what was a history of undo events into two.
>
> Sadly, I have little more than this to go on.

I am truly amazed :-) I don’t have any idea why, either. AFAIK
treesit-inspect-mode doesn’t do anything dangerous.

Yuan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60652; Package emacs. (Mon, 09 Jan 2023 09:03:02 GMT) Full text and rfc822 format available.

Message #11 received at 60652 <at> debbugs.gnu.org (full text, mbox):

From: Mickey Petersen <mickey <at> masteringemacs.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 60652 <at> debbugs.gnu.org
Subject: Re: bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems
 to break the undo ring... sometimes?
Date: Mon, 09 Jan 2023 09:01:11 +0000
Yuan Fu <casouri <at> gmail.com> writes:

> Mickey Petersen <mickey <at> masteringemacs.org> writes:
>
>> Steps to somewhat reliably reproduce it:
>>
>> 1. Enable `treesit-inspect-mode' in a valid buffer.
>> 2. Do some light editing, and sometimes the undo ring will reset
>> itself to just the previous undone state and the current one. In
>> effect turning what was a history of undo events into two.
>>
>> Sadly, I have little more than this to go on.
>
> I am truly amazed :-) I don’t have any idea why, either. AFAIK
> treesit-inspect-mode doesn’t do anything dangerous.
>

Yes, sorry for the vague report. But I figured I'd at least throw it
out there in case someone else encounters it. It's possible something
else is interfering, but given the simplicity of the mode, as you say,
it is indeed odd. I will let you know if I can reproduce it reliably.

> Yuan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60652; Package emacs. (Tue, 05 Sep 2023 23:34:02 GMT) Full text and rfc822 format available.

Message #14 received at 60652 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Mickey Petersen <mickey <at> masteringemacs.org>
Cc: Yuan Fu <casouri <at> gmail.com>, 60652 <at> debbugs.gnu.org
Subject: Re: bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to
 break the undo ring... sometimes?
Date: Tue, 5 Sep 2023 16:32:53 -0700
Mickey Petersen <mickey <at> masteringemacs.org> writes:

> Yuan Fu <casouri <at> gmail.com> writes:
>
>> Mickey Petersen <mickey <at> masteringemacs.org> writes:
>>
>>> Steps to somewhat reliably reproduce it:
>>>
>>> 1. Enable `treesit-inspect-mode' in a valid buffer.
>>> 2. Do some light editing, and sometimes the undo ring will reset
>>> itself to just the previous undone state and the current one. In
>>> effect turning what was a history of undo events into two.
>>>
>>> Sadly, I have little more than this to go on.
>>
>> I am truly amazed :-) I don’t have any idea why, either. AFAIK
>> treesit-inspect-mode doesn’t do anything dangerous.
>>
>
> Yes, sorry for the vague report. But I figured I'd at least throw it
> out there in case someone else encounters it. It's possible something
> else is interfering, but given the simplicity of the mode, as you say,
> it is indeed odd. I will let you know if I can reproduce it reliably.

Have you had any success reproducing this?




This bug report was last modified 1 year and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.