Add back tree-sitter declare-function for python.el (bug#75526)
treesit-declare-unavailable-functions is not available for old emacs versions, but python.el is a core package available on ELPA. Remove the treesit-declare-unavailable-functions until compat.el releases a new version that contains it. * lisp/progmodes/python.el: Remove treesit-declare-unavailable-functions and add back declare-function forms.
This commit is contained in:
parent
782be196e5
commit
c81b50aaf5
1 changed files with 8 additions and 1 deletions
|
@ -259,7 +259,14 @@
|
|||
(require 'compat)
|
||||
(require 'project nil 'noerror)
|
||||
(require 'seq)
|
||||
(treesit-declare-unavailable-functions)
|
||||
|
||||
(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")
|
||||
|
||||
;; Avoid compiler warnings
|
||||
(defvar compilation-error-regexp-alist)
|
||||
|
|
Loading…
Add table
Reference in a new issue