From: Po Lu Date: Mon, 10 Mar 2025 12:43:02 +0000 (+0800) Subject: ; Fix compiler warning in html-ts-mode.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=851ff49cdf456a5fe8f024b79d5d74c5ccc457fc;p=emacs.git ; Fix compiler warning in html-ts-mode.el * lisp/textmodes/html-ts-mode.el (treesit-node-end) (treesit-node-start): Declare. (cherry picked from commit 7a72589847107f26d0ebdc22f9cfa61962d02af4) --- diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index f6d20685ea3..5df489db3e7 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-ts-mode.el @@ -125,6 +125,9 @@ Return nil if there is no name or if NODE is not a defun node." (treesit-search-subtree node "\\`tag_name\\'" nil nil 2) t))) +(declare-function treesit-node-end "treesit.c") +(declare-function treesit-node-start "treesit.c") + (defun html-ts-mode--outline-predicate (node) "Limit outlines to multi-line elements." (when (string-match-p "element" (treesit-node-type node))