Re: c-ts-mode: How to set indent-style in dir-locals

Stéphane Marks <[email protected]> Tue, 19 May 2026 09:52:44 -0400
Newsgroups gmane.emacs.help
Message-ID <CAN+1HbpKautRVWN-MZz1ymM17yi+Jxaywrih3E9gLmp2k+fkKw@mail.gmail.com>
On Tue, May 19, 2026 at 9:42 AM Michael Heerdegen via Users list for the
GNU Emacs text editor <[email protected]> wrote:

> Stéphane Marks <[email protected]> writes:
>
> > Just checked the c-ts source code and that's right.  Simpler.
>
> Have you followed the discussion around the introduction of
> `setopt-local'


Yep (I wrote it with Stefan).


> and can you maybe say whether a patch for this case would
> be welcome?
>

Yes.  Any setter that scans all buffers by default should be made
buffer-local aware so it affects only what it's asked to; in the
setopt-local case just the current buffer explicitly or as implied by
.dir-locals[-2].el