unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71048: The manual should have an example for treesit-language-at-point-function
@ 2024-05-18 23:00 Dmitry Gutov
  2024-05-19  5:56 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2024-05-18 23:00 UTC (permalink / raw)
  To: 71048

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-22  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-18 23:00 bug#71048: The manual should have an example for treesit-language-at-point-function Dmitry Gutov
2024-05-19  5:56 ` Eli Zaretskii
2024-05-22  6:23   ` Yuan Fu

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).