Subject: bug#74612: 30.0.90; [PATCH] Allow passing nil to treesit-node-match-p

From: Eli Zaretskii <[email-masked]>
Date: Sat, 30 Nov 2024 09:22:28 +0200

> From: Yuan Fu <[email-masked]>
> Date: Fri, 29 Nov 2024 16:38:22 -0800
> 
> Eli, are you ok with this patch on emacs-30? Almost all tree-sitter node functions allows user to pass nil for NODE, so treesit-node-match-p should too.

Does this solve an actual problem you've seen somewhere (and if so,
which problem), or does it solve a potential problem that didn't
actually happen yet?

Also, does CHECK_TS_NODE allow nil or does it currently signal an
error?