diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-04-28 12:01:19 -0400 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-04-28 12:01:19 -0400 |
commit | 212e30f6789cd080a9428958872ffcaab6bf248a (patch) | |
tree | fe3f47a666c7dd55db8115fd67dce418518cecb6 | |
parent | 1f2214dabd012cfa730e60a88d73aded53a2f53b (diff) | |
download | emacs-212e30f6789cd080a9428958872ffcaab6bf248a.tar.gz |
; Fix byte-compilation warnings in c-ts-mode.el
* lisp/progmodes/c-ts-mode.el (treesit-parser-set-included-ranges)
(treesit-query-compile): Declare treesit.c functions.
(treesit-load-name-override-list): Defvar it.
-rw-r--r-- | lisp/progmodes/c-ts-mode.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 7a1ee66cb77..113f3b6ee84 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -80,6 +80,8 @@ (declare-function treesit-node-prev-sibling "treesit.c") (declare-function treesit-node-first-child-for-pos "treesit.c") (declare-function treesit-node-next-sibling "treesit.c") +(declare-function treesit-parser-set-included-ranges "treesit.c") +(declare-function treesit-query-compile "treesit.c") ;;; Custom variables @@ -1130,6 +1132,8 @@ BEG and END are described in `treesit-range-rules'." ( assignment constant escape-sequence label literal) ( bracket delimiter error function operator property variable)))) +(defvar treesit-load-name-override-list) + ;;;###autoload (define-derived-mode c-ts-mode c-ts-base-mode "C" "Major mode for editing C, powered by tree-sitter. |