emacs-devel
[Top][All Lists]
Advanced

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

Re: Call for volunteers: add tree-sitter support to major modes


From: Yuan Fu
Subject: Re: Call for volunteers: add tree-sitter support to major modes
Date: Sun, 9 Oct 2022 21:05:09 -0700

> 
> +
> +(defun js--treesit-enable ()
> +  (unless (and (treesit-can-enable-p)
> +               (treesit-language-available-p 'javascript))
> +    (error "Tree sitter isn't available"))
> 
> I don't think we should error here, I'd displaying a message instead.

Actually we should also fall back to non-tree-sitter if the conditions aren’t 
met.

Yuan


reply via email to

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