unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes?
@ 2023-01-08 10:40 Mickey Petersen
  2023-01-09  3:27 ` Yuan Fu
  0 siblings, 1 reply; 4+ messages in thread
From: Mickey Petersen @ 2023-01-08 10:40 UTC (permalink / raw)
  To: 60652


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'






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes?
  2023-01-08 10:40 bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes? Mickey Petersen
@ 2023-01-09  3:27 ` Yuan Fu
  2023-01-09  9:01   ` Mickey Petersen
  0 siblings, 1 reply; 4+ messages in thread
From: Yuan Fu @ 2023-01-09  3:27 UTC (permalink / raw)
  To: Mickey Petersen; +Cc: 60652


Mickey Petersen <mickey@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes?
  2023-01-09  3:27 ` Yuan Fu
@ 2023-01-09  9:01   ` Mickey Petersen
  2023-09-05 23:32     ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Mickey Petersen @ 2023-01-09  9:01 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 60652


Yuan Fu <casouri@gmail.com> writes:

> Mickey Petersen <mickey@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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes?
  2023-01-09  9:01   ` Mickey Petersen
@ 2023-09-05 23:32     ` Stefan Kangas
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2023-09-05 23:32 UTC (permalink / raw)
  To: Mickey Petersen; +Cc: Yuan Fu, 60652

Mickey Petersen <mickey@masteringemacs.org> writes:

> Yuan Fu <casouri@gmail.com> writes:
>
>> Mickey Petersen <mickey@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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-05 23:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 10:40 bug#60652: 30.0.50; tree-sitter: `treesit-inspect-mode' seems to break the undo ring... sometimes? Mickey Petersen
2023-01-09  3:27 ` Yuan Fu
2023-01-09  9:01   ` Mickey Petersen
2023-09-05 23:32     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).