* 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
* bug#71048: The manual should have an example for treesit-language-at-point-function
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
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-05-19 5:56 UTC (permalink / raw)
To: Dmitry Gutov, Yuan Fu; +Cc: 71048
> Date: Sun, 19 May 2024 02:00:23 +0300
> From: Dmitry Gutov <dmitry@gutov.dev>
>
> 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
Yuan, could you please add such examples?
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#71048: The manual should have an example for treesit-language-at-point-function
2024-05-19 5:56 ` Eli Zaretskii
@ 2024-05-22 6:23 ` Yuan Fu
0 siblings, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2024-05-22 6:23 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Dmitry Gutov, 71048-done
> On May 18, 2024, at 10:56 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> Date: Sun, 19 May 2024 02:00:23 +0300
>> From: Dmitry Gutov <dmitry@gutov.dev>
>>
>> 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
>
> Yuan, could you please add such examples?
Yes, I think that’s a good suggestion, and I just did that.
Yuan
^ 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).