aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2024-12-07 22:13:07 -0800
committerYuan Fu2024-12-12 20:59:08 -0800
commit9377ef5c2369202e372774c873af4d6c259cd28f (patch)
tree5ecf7ee36ecf3a01a290ee36542f62165e51a8ef /lisp/progmodes/python.el
parent4bdadbdc215aacdc474b33426bf8eb1a1bd54e1f (diff)
downloademacs-9377ef5c2369202e372774c873af4d6c259cd28f.tar.gz
emacs-9377ef5c2369202e372774c873af4d6c259cd28f.zip
Declare tree-sitter functions with a new macro
* lisp/progmodes/c-ts-mode.el: * lisp/progmodes/cmake-ts-mode.el: * lisp/progmodes/csharp-mode.el: * lisp/progmodes/dockerfile-ts-mode.el: * lisp/progmodes/elixir-ts-mode.el: * lisp/progmodes/go-ts-mode.el: * lisp/progmodes/heex-ts-mode.el: * lisp/progmodes/java-ts-mode.el: * lisp/progmodes/json-ts-mode.el: * lisp/progmodes/lua-ts-mode.el: * lisp/progmodes/php-ts-mode.el: * lisp/progmodes/ruby-ts-mode.el: * lisp/progmodes/rust-ts-mode.el: * lisp/progmodes/js.el: * lisp/progmodes/python.el: * lisp/progmodes/sh-script.el: * lisp/progmodes/c-ts-common.el: * lisp/progmodes/prog-mode.el: * lisp/progmodes/typescript-ts-mode.el: Use new macro. * lisp/treesit.el (treesit-declare-unavailable-functions): New macro.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index cfa3cc59568..4a1cfc6c072 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -259,20 +259,12 @@
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
263;; Avoid compiler warnings 264;; Avoid compiler warnings
264(defvar compilation-error-regexp-alist) 265(defvar compilation-error-regexp-alist)
265(defvar outline-heading-end-regexp) 266(defvar outline-heading-end-regexp)
266 267
267(declare-function treesit-parser-create "treesit.c")
268(declare-function treesit-induce-sparse-tree "treesit.c")
269(declare-function treesit-node-child-by-field-name "treesit.c")
270(declare-function treesit-node-type "treesit.c")
271(declare-function treesit-node-start "treesit.c")
272(declare-function treesit-node-end "treesit.c")
273(declare-function treesit-node-parent "treesit.c")
274(declare-function treesit-node-prev-sibling "treesit.c")
275
276(autoload 'comint-mode "comint") 268(autoload 'comint-mode "comint")
277(autoload 'help-function-arglist "help-fns") 269(autoload 'help-function-arglist "help-fns")
278 270