From: Eli Zaretskii <eliz@gnu.org>
To: jdtsmith@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: On treesit preference for "consumer" modes
Date: Sat, 26 Aug 2023 20:14:07 +0300 [thread overview]
Message-ID: <83fs45lo9s.fsf@gnu.org> (raw)
In-Reply-To: <83il91loqd.fsf@gnu.org> (message from Eli Zaretskii on Sat, 26 Aug 2023 20:04:10 +0300)
> Date: Sat, 26 Aug 2023 20:04:10 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
>
> > From: JD Smith <jdtsmith@gmail.com>
> > Date: Sat, 26 Aug 2023 12:47:18 -0400
> >
> > In the new era of LANG-mode and LANG-ts-mode duality, how should the consumer mode decide which one to use?
>
> A user option, I think. There's no other reliable way ATM.
You could also use telltale signs, if they exist:
. if a ts mode is already loaded (featurep test)
. if auto-mode-alist defines a ts mode for the relevant files
But these cannot be relied upon 100%, because the user might prefer a
ts mode, but has not yet loaded it or used it in this session. So a
fallback is needed, and that can only be a user option, I think.
next prev parent reply other threads:[~2023-08-26 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-26 16:47 On treesit preference for "consumer" modes JD Smith
2023-08-26 17:04 ` Eli Zaretskii
2023-08-26 17:14 ` Eli Zaretskii [this message]
2023-08-26 17:17 ` JD Smith
2023-08-26 17:31 ` Eli Zaretskii
2023-08-26 17:58 ` Eshel Yaron
2023-08-26 19:18 ` JD Smith
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fs45lo9s.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jdtsmith@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.