From: Eli Zaretskii Date: Fri, 13 Jan 2023 06:58:03 +0000 (+0200) Subject: ; Fix non-tree-sitter builds X-Git-Tag: emacs-29.0.90~752 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8a89a18b69cc8da2ab5ab4dcf1564f0e4517509;p=emacs.git ; Fix non-tree-sitter builds * src/fns.c (internal_equal): Call treesit_node_eq only if tree-sitter was compiled in. --- diff --git a/src/fns.c b/src/fns.c index d5f7565d3d7..3984e318feb 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2826,10 +2826,11 @@ internal_equal (Lisp_Object o1, Lisp_Object o2, enum equal_kind equal_kind, && !memcmp (bool_vector_data (o1), bool_vector_data (o2), bool_vector_bytes (size))); } + +#ifdef HAVE_TREE_SITTER if (TS_NODEP (o1)) - { - return treesit_node_eq (o1, o2); - } + return treesit_node_eq (o1, o2); +#endif /* Aside from them, only true vectors, char-tables, compiled functions, and fonts (font-spec, font-entity, font-object)