summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-09-28 19:53:30 +0300
committerEli Zaretskii <eliz@gnu.org>2024-09-28 19:53:30 +0300
commitc934450d14dacfef5e846a743d9637ba1ec6f5a3 (patch)
treec7f74307e478f1daa2eed53e2171c7c0f19e1417
parenta8a3f04f8a7330e0d7e238e32715b4088c9e4275 (diff)
; Fix 'python-ts-mode'
* lisp/progmodes/python.el (python-ts-mode): Fix setting up 'auto-mode-alist'. (Bug#73531)
-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'."
(when python-indent-guess-indent-offset
(python-indent-guess-indent-offset))
- (add-to-list 'auto-mode-alist '(python--auto-mode-alist-regexp . python-ts-mode))
+ (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-ts-mode))
(add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode))))
(derived-mode-add-parents 'python-ts-mode '(python-mode))