emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: treesit indentation "blinking"


From: Eli Zaretskii
Subject: Re: treesit indentation "blinking"
Date: Fri, 24 Mar 2023 14:39:14 +0300

> From: Daniel Colascione <dancol@dancol.org>
> CC: <emacs-devel@gnu.org>
> Date: Thu, 23 Mar 2023 17:10:53 -0400
> 
>  We can place this special rule at the end of our rule list, and previous 
> rules not matching should
>  indicated “error” by itself. Of course, I can’t prove it by using this 
> method to fix the blinking indent, but I
>  don’t quite have the time for it right now.
> 
> Editing can cause all sorts of transient nonsense in the AST, and it's 
> impossible to predict in a general
> manner what this nonsense might be. The wrong kind of bracket can cause the 
> entire rest of the file to be
> parsed as nonsense. This or that error recovery rule isn't going to solve the 
> problem: such a strategy is a
> fragile whack a mole. There needs to be some general solution to prevent 
> indentation blinking. This blinking
> makes TS modules unusable for me.

Daniel, could you please post a recipe, starting from "emacs -Q", to
reproduce the "blinking" during editing you described up-thread?
Preferably while editing some code that one can meet reasonably
frequently in practice.  I'd like to play with the example and see how
serious the problem is.  TIA.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]