emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c934450d14d: ; Fix 'python-ts-mode'


From: Eli Zaretskii
Subject: master c934450d14d: ; Fix 'python-ts-mode'
Date: Sat, 28 Sep 2024 12:54:01 -0400 (EDT)

branch: master
commit c934450d14dacfef5e846a743d9637ba1ec6f5a3
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Fix 'python-ts-mode'
    
    * lisp/progmodes/python.el (python-ts-mode): Fix setting up
    'auto-mode-alist'.  (Bug#73531)
---
 lisp/progmodes/python.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]