]> git.eshelyaron.com Git - emacs.git/commitdiff
; Silence byte-compiler warnings
authorEli Zaretskii <eliz@gnu.org>
Mon, 21 Nov 2022 17:08:25 +0000 (19:08 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 21 Nov 2022 17:08:25 +0000 (19:08 +0200)
* lisp/textmodes/css-mode.el:
* lisp/progmodes/python.el:
* lisp/progmodes/json-ts-mode.el:
* lisp/progmodes/js.el:
* lisp/progmodes/java-ts-mode.el:
* lisp/progmodes/c-ts-mode.el: Add declarations of tree-sitter
functions.

lisp/progmodes/c-ts-mode.el
lisp/progmodes/java-ts-mode.el
lisp/progmodes/js.el
lisp/progmodes/json-ts-mode.el
lisp/progmodes/python.el
lisp/textmodes/css-mode.el

index 6ba209c0fb544d2af308faae211a316199959ba4..371c6180de91098971e7907e4e70c30a615f867f 100644 (file)
 (require 'treesit)
 (require 'rx)
 
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-parent "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-end "treesit.c")
+(declare-function treesit-node-child "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+(declare-function treesit-node-type "treesit.c")
+
 (defcustom c-ts-mode-indent-offset 2
   "Number of spaces for each indentation step in `c-ts-mode'."
   :version "29.1"
index 62962b7293b2fad87f4c98bd5fbc7d861f49a1f3..ee8ac31f675abfa7c01c279ab29c19ebc566de45 100644 (file)
 
 (require 'treesit)
 
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+
 (defcustom java-ts-mode-indent-offset 4
   "Number of spaces for each indentation step in `java-ts-mode'."
   :version "29.1"
index 6d4f7d4f84e5673b399c0741c93c01ed73f7344c..77106ec5839d448222f2ab9791bb91d25af3abaf 100644 (file)
 (defvar ido-cur-list)
 (defvar electric-layout-rules)
 (declare-function ido-mode "ido" (&optional arg))
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-search-subtree "treesit.c")
+(declare-function treesit-node-parent "treesit.c")
+(declare-function treesit-node-child "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+(declare-function treesit-node-next-sibling "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-end "treesit.c")
+(declare-function treesit-node-type "treesit.c")
 
 ;;; Constants
 
index c03ff8515043f0daa95ad7a114008003c8139829..4ea285bd439ad71c5b80ae3f2adc5df890d63752 100644 (file)
 (require 'treesit)
 (require 'rx)
 
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+
+
 (defcustom json-ts-mode-indent-offset 2
   "Number of spaces for each indentation step in `json-ts-mode'."
   :version "29.1"
index c9a69a924e01f5ebb04330e054909887c486135c..bb2aa37ca61edd8d0239c233651b55c6e61db931 100644 (file)
 (defvar compilation-error-regexp-alist)
 (defvar outline-heading-end-regexp)
 
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-child-by-field-name "treesit.c")
+(declare-function treesit-node-type "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-end "treesit.c")
+(declare-function treesit-node-parent "treesit.c")
+
+
 (autoload 'comint-mode "comint")
 (autoload 'help-function-arglist "help-fns")
 
index 1d1ca046cc798849c81a0615547e2a0ea8b943cf..35e6b9ce3ec0a79b0db66dfdfe9b10f24e2d1bdc 100644 (file)
                    (require 'rx))
 (require 'treesit)
 
+(declare-function treesit-parser-create "treesit.c")
+(declare-function treesit-induce-sparse-tree "treesit.c")
+(declare-function treesit-node-type "treesit.c")
+(declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-child "treesit.c")
+
+
 (defgroup css nil
   "Cascading Style Sheets (CSS) editing mode."
   :group 'languages)