From: Dmitry Gutov <dmitry@gutov.dev>
To: 71048@debbugs.gnu.org
Subject: bug#71048: The manual should have an example for treesit-language-at-point-function
Date: Sun, 19 May 2024 02:00:23 +0300 [thread overview]
Message-ID: <1ec990ff-50ad-42fb-ba5e-aa2c49ee77e9@gutov.dev> (raw)
https://www.gnu.org/software/emacs/manual/html_node/elisp/Multiple-Languages.html
has code examples for multiple-language setup (with tree-sitter modes),
and it more-or-less says that treesit-language-at-point-function should
be set.
But there is a default behavior for when it's not set, and the code
snippets in the second half of the page don't set it, so it seems prone
to mistakes.
I think the examples should include a setting for
treesit-language-at-point-function.
Inspired by https://github.com/dgutov/mmm-mode/issues/142
next reply other threads:[~2024-05-18 23:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-18 23:00 Dmitry Gutov [this message]
2024-05-19 5:56 ` bug#71048: The manual should have an example for treesit-language-at-point-function Eli Zaretskii
2024-05-22 6:23 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ec990ff-50ad-42fb-ba5e-aa2c49ee77e9@gutov.dev \
--to=dmitry@gutov.dev \
--cc=71048@debbugs.gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).