emacs-devel
[Top][All Lists]
Advanced

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

Re: c-ts-mode


From: Eli Zaretskii
Subject: Re: c-ts-mode
Date: Fri, 08 Sep 2023 21:23:27 +0300

> From: João Távora <joaotavora@gmail.com>
> Date: Fri, 8 Sep 2023 16:56:20 +0100
> Cc: theo@thornhill.no, casouri@gmail.com, spacibba@aol.com, 
>       emacs-devel@gnu.org
> 
> OK, but then you'll have to deal with the abstraction problem which
> is being solved by LSP servers at the moment, quite effectively.
> It's fine to want this but the motivation you'll find
> for working on this item is affected  That's because that "minimum
> command" you mention already exists in practice
> 
> Are you aware of eslint, prettier, gofmt, rustfmt, and whatever
> other formatter programs are out there?    Or do you just want
> to support clang-format for the Emacs project and other C/C++
> projects?

I'd start with the latter.  But that's something for the volunteer who
takes up that job to figure out.

> Anyway, do you also want to support this without external tools
> at all  (i.e. without relying on the clang-format program at all?)
> Your TODO item seems to say so.

Yes, if possible.

> If so, then going that route means basically writing a translator
> of clang-format -> Emacs treesitter rules.  Maybe it's easier than
> I think, and the main advantage is it will plug into
> indent-line-function and indent-region-function rather easily.
> And, who knows, some code can be reused for writing translators of
> other formatters.

Yes.

> Anyway I wouldn't discard the "LSP shortcut" idea.

I didn't discard it.



reply via email to

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