[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: |
Wed, 06 Nov 2024 15:25:34 +0200 |
> Date: Wed, 06 Nov 2024 14:46:48 +0200
> From: "Dmitry Gutov" <dmitry@gutov.dev>
> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
>
>
> On Wed, Nov 6, 2024, at 2:15 PM, Eli Zaretskii wrote:
>
> > Date: Tue, 5 Nov 2024 22:59:09 +0200
> > Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
> > From: Dmitry Gutov <dmitry@gutov.dev>
> >
> > On 05/11/2024 21:53, Eli Zaretskii wrote:
> > >> Suppose we have this in css-mode.el:
> > >>
> > >> ;;;###autoload
> > >> (if (and (treesit-available-p)
> > >> treesit-modes-enabled)
> > >> (add-to-list 'auto-mode-alist '("\\.css\\'" . css-ts-mode)))
> > >>
> > >> And treesit-mode-enabled is originally nil.
> > >>
> > >> Then the user customizes it to t.
> > >>
> > >> What does its setter do? For css-ts-mode and other modes.
> > >
> > > It could turn the mode on in every buffer that visits a .css file. Or
> > > not.
> >
> > Based on which information?
>
> buffer-file-name and auto-mode-alist, I guess?
>
> But auto-mode-alist won't have any relevant entries because when its form
> (above) was evaluated,
> treesit-modes-enabled was nil.
Are you saying that it is impossible to turn on the mode in relevant
buffers? I find that hard to believe, but if you are right, then we
could refrain from doing this retroactively.
(And I still don't understand where this discussion is going. What
point are you trying to make?)
- Re: An anonymous IRC user's opinion, (continued)
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/04
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/04
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/05
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/05
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/05
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/05
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/05
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/05
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/06
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/06
- Re: An anonymous IRC user's opinion,
Eli Zaretskii <=
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/06
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/06
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/18
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/19
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/19
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/19
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/19
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/19
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/19
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/19