[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An anonymous IRC user's opinion
From: |
Eli Zaretskii |
Subject: |
Re: An anonymous IRC user's opinion |
Date: |
Sat, 12 Oct 2024 10:34:12 +0300 |
> Date: Fri, 11 Oct 2024 23:30:12 +0300
> From: Dmitry Gutov <dmitry@gutov.dev>
> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
>
> On 10/10/2024 07:56, Eli Zaretskii wrote:
> >> That seems unlikely: as long as the auto-mode-alist configuration for
> >> rust-ts-mode is done early on in Emacs's startup, any installed 3rd
> >> party package such as rust-mode would add its config later, and thus
> >> have priority.
> > I don't have objections to making Rust recognized automatically and
> > activating rust-ts-mode, if people think this danger is low or
> > non-existent, and if *.rs files are not commonly used for something
> > completely unrelated (e.g., I see on my Windows system quite a few
> > *.rs files that seem to be some kind of Windows data files).
>
> Actually, thinking back the last time we made such a move, we got a
> report from a user who preferred to have files in question (*.toml) in
> fundamental-mode, because they didn't want the hassle of installing the
> toml tree-sitter grammar (bug#60559).
>
> The said user didn't have Emacs compiled with tree-sitter, so if we
> wanted to revisit that issue, we could enable ts mode globally when
> Emacs is compiled with that support, and when it isn't, keep them out of
> auto-mode-alist.
If we want to be selective, we should also check if the grammar
library is installed.
Or we could tell the user, when a Rust file is first visited and the
grammar is not available, that we recommend to install the grammar.
Either way, this is not very trivial, and someone should do the work
of designing the best UI and coding it.
> > I even pass --without-tree-sitter to configure now. It seems
> particularly surprising to me that I explicitly tell emacs "don't
> use tree-sitter" and then it immediately starts complaining to me
> that it doesn't have tree-sitter.
Feel free to improve what we have. My point is that it is not very
trivial; what we have is basically a compromise, which could be
improved, at least for some languages, if we want to be smarter.
- Re: An anonymous IRC user's opinion, (continued)
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/09
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/10
- Re: An anonymous IRC user's opinion, Xiyue Deng, 2024/10/10
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/10
- Re: An anonymous IRC user's opinion, Xiyue Deng, 2024/10/10
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/11
- Re: An anonymous IRC user's opinion,
Eli Zaretskii <=
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/12
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/10/12
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/10/13
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/13
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/13
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/14