[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 362678d90e1: python.el: Use correct regexp when enabling python
From: |
Eli Zaretskii |
Subject: |
emacs-29 362678d90e1: python.el: Use correct regexp when enabling python-ts-mode |
Date: |
Sat, 28 Jan 2023 06:27:50 -0500 (EST) |
branch: emacs-29
commit 362678d90e10d0e60642cb42594f9e15e39a3a0b
Author: Brian Leung <leungbk@posteo.net>
Commit: Eli Zaretskii <eliz@gnu.org>
python.el: Use correct regexp when enabling python-ts-mode
* lisp/progmodes/python.el: Use "python[0-9.]*" regexp for
'interpreter-mode-alist', and not 'auto-mode-alist'. (Bug#61090)
---
lisp/progmodes/python.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index a869cdc5fdb..df0d1c96965 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6715,8 +6715,8 @@ implementations: `python-mode' and `python-ts-mode'."
(when python-indent-guess-indent-offset
(python-indent-guess-indent-offset))
- (add-to-list 'auto-mode-alist
- '("\\.py[iw]?\\'\\|python[0-9.]*" . python-ts-mode))))
+ (add-to-list 'auto-mode-alist '("\\.py[iw]?\\'" . python-ts-mode))
+ (add-to-list 'interpreter-mode-alist '("python[0-9.]*" . python-ts-mode))))
;;; Completion predicates for M-x
;; Commands that only make sense when editing Python code
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 362678d90e1: python.el: Use correct regexp when enabling python-ts-mode,
Eli Zaretskii <=