From: Eli Zaretskii <eliz@gnu.org>
To: Petteri Hintsanen <petterih@iki.fi>
Cc: joaotavora@gmail.com, theo@thornhill.no, casouri@gmail.com,
spacibba@aol.com, emacs-devel@gnu.org
Subject: Re: c-ts-mode
Date: Sat, 09 Sep 2023 09:19:58 +0300 [thread overview]
Message-ID: <83v8cjvpf5.fsf@gnu.org> (raw)
In-Reply-To: <x2mzg1w4eu9.fsf@iki.fi> (message from Petteri Hintsanen on Fri, 08 Sep 2023 22:58:22 +0300)
> From: Petteri Hintsanen <petterih@iki.fi>
> Cc: Eli Zaretskii <eliz@gnu.org>, theo@thornhill.no, casouri@gmail.com,
> spacibba@aol.com, emacs-devel@gnu.org
> Date: Fri, 08 Sep 2023 22:58:22 +0300
>
> João Távora <joaotavora@gmail.com> writes:
>
> > Maybe in the past CC Mode's styles were very useful, but I don't
> > think they attract the same interest today because there are these
> > external tools. For the same reason, I don't predict ts
> > indentation styles to become widely used.
>
> I have to disagree with this. Built-in styles are useful, and for me
> they have been, in all major modes I've used (not just CC mode), close
> enough for almost all use cases over the years. I use external tools
> like clang-format only to satisfy some CI systems that (IMO stupidly)
> enforce certain formatting.
>
> In general I'd find it a bit disconcerting if the tendency is to move
> towards external stuff for basics like syntax highlighting and code
> formatting.
There's no such "move", not in Emacs anyway. We will continue
supporting our built-in rules for the observable future. This
discussion is about _allowing_ users who do want it to have Emacs obey
indentation rules specified on external files of de-facto standard
structure and format. When this is implemented, it should be an
optional feature that users activate only if they want/need it.
> I personally don't like the idea of installing a couple of
> libraries plus their emacs glue libs, source code formatters along with
> their dependencies, and huge language servers [*], to get first class
> "editing experience" -- Emacs is supposedly a text editor, after all.
> Especially given that I've got to install and use Emacs on resource
> limited machines and ones where I do not have admin rights, so I cannot
> install those externals just like that.
You are assuming something about the implementation that still doesn't
exist. If you mean LSP, then I agree that it should ideally not be
the prerequisite to having this feature, and I think at least for most
of that functionality we could simply convert the external rules into
our internal variables and data structures used by indentation
functions.
> It is great that Emacs is able to leverage the power of third party libs
> and tools, but I think this should not come at the expense of built in
> functionality. Of course the rant above was a rhetoric exaggeration,
> but still it is perhaps something to keep in mind when designing for the
> future.
We always keep that in mind.
next prev parent reply other threads:[~2023-09-09 6:19 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <r6t7xfcchagyl72ltdrcavncbpvba7badcoh4yimleoynmzfvb.ref@elkspm3vozuv>
2023-08-30 23:52 ` c-ts-mode Ergus
2023-09-01 4:14 ` c-ts-mode Yuan Fu
2023-09-07 9:25 ` c-ts-mode João Távora
2023-09-07 9:37 ` c-ts-mode Eli Zaretskii
2023-09-07 15:58 ` c-ts-mode João Távora
2023-09-07 17:10 ` c-ts-mode Eli Zaretskii
2023-09-07 17:53 ` c-ts-mode João Távora
2023-09-07 18:13 ` c-ts-mode Eli Zaretskii
2023-09-07 18:23 ` c-ts-mode João Távora
2023-09-07 18:32 ` c-ts-mode Eli Zaretskii
2023-09-07 22:01 ` c-ts-mode João Távora
2023-09-08 6:14 ` c-ts-mode Eli Zaretskii
2023-09-08 7:25 ` c-ts-mode João Távora
2023-09-08 11:25 ` c-ts-mode Eli Zaretskii
2023-09-08 12:38 ` c-ts-mode João Távora
2023-09-08 13:11 ` c-ts-mode Eli Zaretskii
2023-09-08 13:32 ` c-ts-mode Eli Zaretskii
2023-09-08 15:15 ` c-ts-mode João Távora
2023-09-08 15:34 ` c-ts-mode Eli Zaretskii
2023-09-08 15:56 ` c-ts-mode João Távora
2023-09-08 18:23 ` c-ts-mode Eli Zaretskii
2023-09-08 18:30 ` c-ts-mode João Távora
2023-09-08 18:54 ` c-ts-mode Eli Zaretskii
2023-09-08 19:42 ` c-ts-mode João Távora
2023-09-09 6:09 ` c-ts-mode Eli Zaretskii
2023-09-08 19:58 ` c-ts-mode Petteri Hintsanen
2023-09-08 20:27 ` c-ts-mode João Távora
2023-09-09 6:19 ` Eli Zaretskii [this message]
2023-09-13 16:15 ` c-ts-mode Petteri Hintsanen
2023-09-12 0:34 ` c-ts-mode Yuan Fu
2023-09-12 7:45 ` c-ts-mode João Távora
2023-09-12 8:00 ` c-ts-mode Po Lu
2023-09-12 9:51 ` c-ts-mode João Távora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83v8cjvpf5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=joaotavora@gmail.com \
--cc=petterih@iki.fi \
--cc=spacibba@aol.com \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).