emacs-devel
[Top][All Lists]
Advanced

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

Re: master 09b5f00613: ; Fix calls to treesit functions


From: Theodor Thornhill
Subject: Re: master 09b5f00613: ; Fix calls to treesit functions
Date: Mon, 19 Dec 2022 17:42:38 +0100


On 19 December 2022 16:44:06 CET, Dmitry Gutov <dgutov@yandex.ru> wrote:
>On 19/12/2022 17:21, Eli Zaretskii wrote:
>>> Yeah, but in for example prog-mode I then have to do something like
>>> (treesit-language-available-p (treesit-language-at (point)))
>>> 
>>> Which seems long.
>> Maybe, but I think there's no way around it, if we want to include
>> tree-sitter code safely.
>
>Why not make the LANGUAGE argument optional, and default to 
>(treesit-language-at (point))?

Sure :)
Theo



reply via email to

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