emacs-devel
[Top][All Lists]
Advanced

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

Re: An anonymous IRC user's opinion


From: Dmitry Gutov
Subject: Re: An anonymous IRC user's opinion
Date: Fri, 11 Oct 2024 23:30:12 +0300
User-agent: Mozilla Thunderbird

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.

That could still lead to inconveniences sometimes, but at the very least it would follow the reporter's request from down the thread:

If emacs was configured with tree-sitter, it seems productive to
warn the user when tree-sitter grammars are missing.  It seems
likely that user intended to have tree-sitter.

When emacs is NOT configured with tree-sitter, it seems
counter-productive to warn about missing tree-sitter.

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.



reply via email to

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