From: Eshel Yaron Date: Thu, 24 Oct 2024 12:06:31 +0000 (+0200) Subject: Fix bootstrap X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10a2f2ca9504f30b67e8b43eda0e4200b0623122;p=emacs.git Fix bootstrap --- diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el index ffc8e2e58da..c78d8f55766 100644 --- a/lisp/ldefs-boot.el +++ b/lisp/ldefs-boot.el @@ -25347,8 +25347,6 @@ Optional argument FACE specifies the face to do the highlighting. ;;; Generated autoloads from progmodes/python.el (push (purecopy '(python 0 28)) package--builtin-versions) -(defconst python--auto-mode-alist-regexp (rx (or (seq "." (or "py" "pth" "pyi" "pyw")) (seq "/" (or "SConstruct" "SConscript"))) eos)) -(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode)) (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode)) (autoload 'run-python "python" "\ Run an inferior Python process. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 18baf136f57..5025455f0de 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -278,13 +278,15 @@ ;;;###autoload (defconst python--auto-mode-alist-regexp - (rx (or - (seq "." (or "py" - "pth" ; Python Path Configuration File - "pyi" ; Python Stub File (PEP 484) - "pyw")) ; MS-Windows specific extension - (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files - eos)) + "\\(?:\\.\\(?:p\\(?:th\\|y[iw]?\\)\\)\\|/\\(?:SCons\\(?:\\(?:crip\\|truc\\)t\\)\\)\\)\\'" + ;; (rx (or + ;; (seq "." (or "py" + ;; "pth" ; Python Path Configuration File + ;; "pyi" ; Python Stub File (PEP 484) + ;; "pyw")) ; MS-Windows specific extension + ;; (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files + ;; eos) + ) ;;;###autoload (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode))