aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f06d58a6c20..5a96972caa7 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -7442,8 +7442,7 @@ implementations: `python-mode' and `python-ts-mode'."
7442 (derived-mode-add-parents 'python-ts-mode '(python-mode))) 7442 (derived-mode-add-parents 'python-ts-mode '(python-mode)))
7443 7443
7444;;;###autoload 7444;;;###autoload
7445(when (and (fboundp 'treesit-available-p) (treesit-available-p) 7445(when (boundp 'treesit-major-mode-remap-alist) ; Emacs 31.1
7446 (boundp 'treesit-major-mode-remap-alist)) ; Emacs 31.1
7447 (add-to-list 'treesit-major-mode-remap-alist 7446 (add-to-list 'treesit-major-mode-remap-alist
7448 '(python-mode . python-ts-mode))) 7447 '(python-mode . python-ts-mode)))
7449 7448