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: Eli Zaretskii
Subject: Re: An anonymous IRC user's opinion
Date: Sun, 13 Oct 2024 07:41:34 +0300

> Date: Sat, 12 Oct 2024 23:27:01 +0300
> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
> From: Dmitry Gutov <dmitry@gutov.dev>
> 
> > 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.
> 
> The proposal I'm quoting is straightforward: if Emacs is compiled with 
> tree-sitter support, enable the modes and warn when the grammars are not 
> available. If Emacs is not compiled with tree-sitter, do neither.
> 
> That kind of rule has predictability: for example if the grammar was not 
> installed originally but the user did that while Emacs was running, the 
> corresponding major mode will start working the next time the user tries 
> to enable it. That wouldn't be the case if we conditionally alter 
> auto-mode-alist based on grammar availability.
> 
> The above approach should be quite easy to implement, if there's 
> agreement to it. Otherwise, the issue is about choosing the details of 
> the UI first.

It is not clear which modes you suggest that should behave like that.
Surely, not all of them, i.e. including those for which non-TS modes
are part of Emacs?

And yes, I would like to hear from more people what they think about
the possible behaviors in these cases, including how to handle missing
grammar libraries.



reply via email to

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