From: Eshel Yaron Date: Fri, 27 Sep 2024 10:32:37 +0000 (+0200) Subject: ; Fix bug#73506 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=645f8a06d828c34a26fd20e0996517bc19d80c40;p=emacs.git ; Fix bug#73506 --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index d665064d4d6..0399c328ff5 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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))