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: Dmitry Gutov
Subject: Re: master 09b5f00613: ; Fix calls to treesit functions
Date: Mon, 19 Dec 2022 17:44:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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



reply via email to

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