]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix bug#73506
authorEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:32:37 +0000 (12:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:32:44 +0000 (12:32 +0200)
lisp/progmodes/python.el

index d665064d4d641feabf354e6acfe32feeb95b86aa..0399c328ff5b1e17a38c1dbdf615efbe53f0f960 100644 (file)
@@ -7210,7 +7210,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))