From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Yuan Fu <casouri@gmail.com>, theo@thornhill.no, emacs-devel@gnu.org
Subject: Re: master 09b5f00613: ; Fix calls to treesit functions
Date: Mon, 19 Dec 2022 23:37:28 -0500 [thread overview]
Message-ID: <jwvili6sner.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83ili6d9ra.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Dec 2022 05:39:05 +0200")
> SGTM, but I think we should document somewhere how does one write a
> Lisp program that could optionally use tree-sitter, i.e. which APIs
> text for the availability of tree-sitter support internally, and thus
> could serve as a gate-keepers.
I think this can be done simply by listing which functions are always
defined. Then we just have to make sure that those functions can be
implemented correctly even without Tree-sitter. This is the case for
example for `treesit-node-at` and `treesit-parser-list` (where nil is
the correct answer when Tree-sitter is absent) .
Stefan
next prev parent reply other threads:[~2022-12-20 4:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <167138365421.15060.2886694741391315956@vcs2.savannah.gnu.org>
[not found] ` <20221218171414.77B8EC0060F@vcs2.savannah.gnu.org>
2022-12-18 20:19 ` master 09b5f00613: ; Fix calls to treesit functions Stefan Monnier
2022-12-18 23:02 ` Yuan Fu
2022-12-18 23:54 ` Stefan Monnier
2022-12-19 8:26 ` Yuan Fu
2022-12-19 3:23 ` Eli Zaretskii
2022-12-19 3:37 ` Stefan Monnier
2022-12-19 6:26 ` Theodor Thornhill
2022-12-19 8:35 ` Yuan Fu
2022-12-19 9:07 ` Theodor Thornhill
2022-12-19 12:29 ` Eli Zaretskii
2022-12-19 13:47 ` Theodor Thornhill
2022-12-19 14:40 ` Eli Zaretskii
2022-12-19 14:51 ` Theodor Thornhill
2022-12-19 15:21 ` Eli Zaretskii
2022-12-19 15:44 ` Dmitry Gutov
2022-12-19 16:42 ` Theodor Thornhill
2022-12-19 16:57 ` Eli Zaretskii
2022-12-19 16:13 ` Stefan Monnier
2022-12-19 16:42 ` Theodor Thornhill
2022-12-20 0:12 ` Yuan Fu
2022-12-20 3:39 ` Eli Zaretskii
2022-12-20 4:37 ` Stefan Monnier [this message]
2022-12-20 13:59 ` Eli Zaretskii
2022-12-20 15:35 ` Stefan Monnier
2022-12-20 15:44 ` Eli Zaretskii
2022-12-20 16:02 ` Stefan Monnier
2022-12-21 0:36 ` Yuan Fu
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=jwvili6sner.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=casouri@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=theo@thornhill.no \
/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.