aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2025-01-27 18:00:16 -0800
committerYuan Fu2025-01-29 21:25:32 -0800
commitc81b50aaf520daa2c9c8b45715f75149bc254014 (patch)
tree5e57be31af68f2ddece1d1855d629a78b1110ba1 /lisp/progmodes/python.el
parent782be196e52f8912c3e26c646f04fe48cf703aca (diff)
downloademacs-c81b50aaf520daa2c9c8b45715f75149bc254014.tar.gz
emacs-c81b50aaf520daa2c9c8b45715f75149bc254014.zip
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.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index c00de2d6a8d..bd8ec236207 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -259,7 +259,14 @@
259(require 'compat) 259(require 'compat)
260(require 'project nil 'noerror) 260(require 'project nil 'noerror)
261(require 'seq) 261(require 'seq)
262(treesit-declare-unavailable-functions) 262
263(declare-function treesit-parser-create "treesit.c")
264(declare-function treesit-induce-sparse-tree "treesit.c")
265(declare-function treesit-node-child-by-field-name "treesit.c")
266(declare-function treesit-node-type "treesit.c")
267(declare-function treesit-node-start "treesit.c")
268(declare-function treesit-node-end "treesit.c")
269(declare-function treesit-node-parent "treesit.c")
263 270
264;; Avoid compiler warnings 271;; Avoid compiler warnings
265(defvar compilation-error-regexp-alist) 272(defvar compilation-error-regexp-alist)