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: Eli Zaretskii
Subject: Re: master 09b5f00613: ; Fix calls to treesit functions
Date: Mon, 19 Dec 2022 18:57:45 +0200

> Date: Mon, 19 Dec 2022 17:44:06 +0200
> Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca
> From: Dmitry Gutov <dgutov@yandex.ru>
> 
> 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))?

There's no reason why not.

Yuan, WDYT?



reply via email to

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