mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-09 08:21:30 -07:00
; Add new functions to treesit-declare-unavailable-functions
* lisp/treesit.el (treesit-declare-unavailable-functions): Add missing functions.
This commit is contained in:
parent
db4ce0ddff
commit
7653bdf63f
1 changed files with 6 additions and 5 deletions
|
|
@ -78,7 +78,9 @@ in a Emacs not built with tree-sitter library."
|
|||
(declare-function treesit-node-p "treesit.c")
|
||||
(declare-function treesit-compiled-query-p "treesit.c")
|
||||
(declare-function treesit-query-p "treesit.c")
|
||||
(declare-function treesit-query-eagerly-compiled-p "treesit.c")
|
||||
(declare-function treesit-query-language "treesit.c")
|
||||
(declare-function treesit-query-source "treesit.c")
|
||||
|
||||
(declare-function treesit-node-parser "treesit.c")
|
||||
|
||||
|
|
@ -88,8 +90,12 @@ in a Emacs not built with tree-sitter library."
|
|||
(declare-function treesit-parser-buffer "treesit.c")
|
||||
(declare-function treesit-parser-language "treesit.c")
|
||||
(declare-function treesit-parser-tag "treesit.c")
|
||||
(declare-function treesit-parser-embed-level "treesit.c")
|
||||
(declare-function treesit-parser-set-embed-level "treesit.c")
|
||||
(declare-function treesit-parser-changed-regions "treesit.c")
|
||||
|
||||
(declare-function treesit-parser-root-node "treesit.c")
|
||||
(declare-function treesit-parse-string "treesit.c")
|
||||
|
||||
(declare-function treesit-parser-set-included-ranges "treesit.c")
|
||||
(declare-function treesit-parser-included-ranges "treesit.c")
|
||||
|
|
@ -994,9 +1000,6 @@ is nil."
|
|||
(null (treesit-parser-embed-level parser)))))
|
||||
parsers))
|
||||
|
||||
(declare-function treesit-parser-set-embed-level "treesit.c")
|
||||
(declare-function treesit-parser-embed-level "treesit.c")
|
||||
|
||||
(defun treesit--update-ranges-non-local
|
||||
( host-parser query embed-lang modified-tick embed-level
|
||||
&optional beg end offset range-fn)
|
||||
|
|
@ -2178,8 +2181,6 @@ parser."
|
|||
(signal 'treesit-no-parser nil))))
|
||||
(car (treesit-parser-list))))
|
||||
|
||||
(declare-function treesit-parser-changed-regions "treesit.c")
|
||||
|
||||
(defun treesit--pre-redisplay (&rest _)
|
||||
"Force a reparse on primary parser and mark regions to be fontified."
|
||||
(unless (eq treesit--pre-redisplay-tick (buffer-chars-modified-tick))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue