aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorEli Zaretskii2024-09-28 19:53:30 +0300
committerEli Zaretskii2024-09-28 19:53:30 +0300
commitc934450d14dacfef5e846a743d9637ba1ec6f5a3 (patch)
treec7f74307e478f1daa2eed53e2171c7c0f19e1417 /lisp/progmodes/python.el
parenta8a3f04f8a7330e0d7e238e32715b4088c9e4275 (diff)
downloademacs-c934450d14dacfef5e846a743d9637ba1ec6f5a3.tar.gz
emacs-c934450d14dacfef5e846a743d9637ba1ec6f5a3.zip
; Fix 'python-ts-mode'
* lisp/progmodes/python.el (python-ts-mode): Fix setting up 'auto-mode-alist'. (Bug#73531)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 79fd0982115..39efeaf9122 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -7219,7 +7219,7 @@ implementations: `python-mode' and `python-ts-mode'."
7219 (when python-indent-guess-indent-offset 7219 (when python-indent-guess-indent-offset
7220 (python-indent-guess-indent-offset)) 7220 (python-indent-guess-indent-offset))
7221 7221
7222 (add-to-list 'auto-mode-alist '(python--auto-mode-alist-regexp . python-ts-mode)) 7222 (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-ts-mode))
7223 (add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode)))) 7223 (add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode))))
7224 7224
7225(derived-mode-add-parents 'python-ts-mode '(python-mode)) 7225(derived-mode-add-parents 'python-ts-mode '(python-mode))