From 851ff49cdf456a5fe8f024b79d5d74c5ccc457fc Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 10 Mar 2025 20:43:02 +0800 Subject: [PATCH] ; 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) --- lisp/textmodes/html-ts-mode.el | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.5