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: Wed, 29 Mar 2023 05:26:36 +0300

> From: João Távora <joaotavora@gmail.com>
> Cc: Dmitry Gutov <dgutov@yandex.ru>,  dancol@dancol.org,  casouri@gmail.com,
>   emacs-devel@gnu.org, theo@thornhill.no
> Date: Tue, 28 Mar 2023 23:11:05 +0100
> 
> Though a number of indenting problems would remain after that, at least
> this one clear annoyance would be solved.  So if there are no
> objections, I propose to apply this patch.
> 
> diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
> index 59eb9fc23e6..88360716381 100644
> --- a/lisp/progmodes/c-ts-mode.el
> +++ b/lisp/progmodes/c-ts-mode.el
> @@ -956,10 +956,6 @@ c-ts-base-mode
>    ;; Comment
>    (c-ts-common-comment-setup)
>  
> -  ;; Electric
> -  (setq-local electric-indent-chars
> -              (append "{}():;,#" electric-indent-chars))
> -
>    ;; Imenu.
>    (setq-local treesit-simple-imenu-settings
>                (let ((pred #'c-ts-mode--defun-valid-p))
> 
> In master?  In emacs-29?

I suggest to do this in emacs-29, but conditionally, with a
defcustom.  This will allow users to try both ways and maybe we will
have some feedback regarding what is the best way.

I'm also interested to know what other editors do, as Daniel points
out.



reply via email to

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