emacs-devel
[Top][All Lists]
Advanced

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

Re: treesit indentation "blinking"


From: João Távora
Subject: Re: treesit indentation "blinking"
Date: Sun, 02 Apr 2023 22:40:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 02/04/2023 20:23, João Távora wrote:
>> So my initial idea was to tone down electric-indent-chars, at least
>> for the moment.  And Dmitry's idea was to make electric-indent-chars
>> be ambitious _only_ if electric-pair-mode is enabled (by the user).
>> Maybe we should bring back that idea, and it seems the least bad of
>> the bunch right now.
>
> Alternatively, we only perform "electric indent" (aside from after
> RET) when the parse tree does not contain errors. Using the hook
> electric-indent-functions instead of altering electric-indent-chars.

If easy to do, that's even better.  Then electric-pair-mode doesn't need
to enter the picture at all.

João



reply via email to

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