bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60256: 29.0.60; Maybe improve tree sitter default treesit-language-a


From: Stefan Kangas
Subject: bug#60256: 29.0.60; Maybe improve tree sitter default treesit-language-at function
Date: Sat, 2 Sep 2023 09:41:05 -0700

Eli Zaretskii <eliz@gnu.org> writes:

> tags 60256 wontfix
> thanks
>
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Sat, 24 Dec 2022 14:43:18 -0800
>> Cc: Wilhelm Hugo Kirschbaum <wilhelm@floatpays.co.za>,
>>  60256@debbugs.gnu.org
>>
>>
>> Yeah, sorry for the delay. I don’t think it’s worth it, because (1) I
>> expect major modes with multiple langauges to implement
>> treesit-language-at-point-function which takes care of all the work, and
>> (2) in the rare case where there are multiple languages and no
>> treesit-language-at-point-function, using the first language whose range
>> spans point (this patch) is not necessarily correct: the host language (eg, 
>> HTML
>> among HTML, CSS & JavaScript) always covers the whole buffer, only
>> embedded languages has ranges.
>
> OK, thanks.

I'm therefore closing this bug report.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]