diff options
| author | Stefan Kangas | 2024-11-23 16:42:46 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2024-11-23 16:46:30 +0100 |
| commit | d4cb3b30f18f4ac2c4a2ed21a4084d2209987382 (patch) | |
| tree | cc7ba1485b2747dd815a93b362cda9f0b76bffaa /lisp/progmodes/python.el | |
| parent | 30bcba27c8c8c89c4ba9d81fc96edf173329a7e6 (diff) | |
| download | emacs-d4cb3b30f18f4ac2c4a2ed21a4084d2209987382.tar.gz emacs-d4cb3b30f18f4ac2c4a2ed21a4084d2209987382.zip | |
; Fix bootstrap (Bug#74490)
* lisp/progmodes/python.el (python--auto-mode-alist-regexp): Don't use
rx in autoloaded variable, since it breaks bootstrap when copied to
ldefs-boot.el.
* lisp/ldefs-boot.el: Update.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2438029bfdd..cfa3cc59568 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -278,13 +278,15 @@ | |||
| 278 | 278 | ||
| 279 | ;;;###autoload | 279 | ;;;###autoload |
| 280 | (defconst python--auto-mode-alist-regexp | 280 | (defconst python--auto-mode-alist-regexp |
| 281 | (rx (or | 281 | ;; (rx (or |
| 282 | (seq "." (or "py" | 282 | ;; (seq "." (or "py" |
| 283 | "pth" ; Python Path Configuration File | 283 | ;; "pth" ; Python Path Configuration File |
| 284 | "pyi" ; Python Stub File (PEP 484) | 284 | ;; "pyi" ; Python Stub File (PEP 484) |
| 285 | "pyw")) ; MS-Windows specific extension | 285 | ;; "pyw")) ; MS-Windows specific extension |
| 286 | (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files | 286 | ;; (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files |
| 287 | eos)) | 287 | ;; eos) |
| 288 | "\\(?:\\.\\(?:p\\(?:th\\|y[iw]?\\)\\)\\|/\\(?:SCons\\(?:\\(?:crip\\|truc\\)t\\)\\)\\)\\'" | ||
| 289 | ) | ||
| 288 | 290 | ||
| 289 | ;;;###autoload | 291 | ;;;###autoload |
| 290 | (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode)) | 292 | (add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode)) |