all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>
Cc: "Ergus via Emacs development discussions." <emacs-devel@gnu.org>,
	 Yuan Fu <casouri@gmail.com>
Subject: Re: Detecting tree-sitter based major-modes for end-user customization and third party functions/packages
Date: Tue, 20 Dec 2022 10:38:16 -0500	[thread overview]
Message-ID: <jwv1qoursr6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <6c5b1d81-b6ce-bc87-f58e-c950b57fd20b@secure.kjonigsen.net> ("Jostein Kjønigsen"'s message of "Tue, 20 Dec 2022 12:35:57 +0100")

> Looking at (treesit-major-mode-setup), I can't see it leaving any traces to
> be reliably detected later. Should we add some (documented) buffer-local
> variables to be able to detect this later? Should we create a mostly empty
> minor-mode for easy detection and ability to add hooks?

(treesit-parser-list) seems like a good first approximation, tho I guess
it depends exactly what they want to do with that info.


        Stefan




  parent reply	other threads:[~2022-12-20 15:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20 11:35 Detecting tree-sitter based major-modes for end-user customization and third party functions/packages Jostein Kjønigsen
2022-12-20 14:21 ` Eli Zaretskii
2022-12-20 15:38 ` Stefan Monnier [this message]
2022-12-20 19:44   ` Jostein Kjønigsen
2022-12-20 20:03     ` Stefan Monnier
2022-12-20 20:14       ` Jostein Kjønigsen
2022-12-20 20:21         ` Stefan Monnier

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=jwv1qoursr6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jostein@secure.kjonigsen.net \
    /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.