[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.
- Re: treesit indentation "blinking", (continued)
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/23
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/23
- Re: treesit indentation "blinking", João Távora, 2023/03/25
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/25
- Re: treesit indentation "blinking", Eli Zaretskii, 2023/03/25
- Re: treesit indentation "blinking", João Távora, 2023/03/25
- Re: treesit indentation "blinking", João Távora, 2023/03/28
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/28
- Re: treesit indentation "blinking",
Eli Zaretskii <=
- Re: treesit indentation "blinking", João Távora, 2023/03/29
- Re: treesit indentation "blinking", Lynn Winebarger, 2023/03/29
- Re: treesit indentation "blinking", Herman , Géza, 2023/03/29
- Re: treesit indentation "blinking", João Távora, 2023/03/29
- Re: treesit indentation "blinking", Herman , Géza, 2023/03/30
- Re: treesit indentation "blinking", Eli Zaretskii, 2023/03/30
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/30
- Re: treesit indentation "blinking", João Távora, 2023/03/30
- Re: treesit indentation "blinking", João Távora, 2023/03/30
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/30