all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#73506: 31.0.50; File mode specification error caused by python.el auto-mode-alist
@ 2024-09-27  4:43 Mark Barton
  2024-09-27  5:45 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Barton @ 2024-09-27  4:43 UTC (permalink / raw)
  To: 73506

When opening Python files I would get a file-mode error and be in Fundamental mode. Looks like the below commit changed the python--auto-mode-alist-regexp constant and when adding to the auto-mode-alist for python-ts-mode it would put the name of the constant in the list rather than the value.

Here is how the auto-mode-alist looked for the python related modes:
#+begin_example
((python--auto-mode-alist-regexp . python-ts-mode)
 ("\\.\\(?:p\\(?:th\\|y[iw]?\\)\\)\\'" . python-mode))
 #+end_example

Commit where the change was made:
#+begin_src diff
2f485e68ff96cc66a17df2c0a58e272bbfc24765
Author:     Stefan Kangas <stefankangas@gmail.com>
AuthorDate: Thu Sep 26 17:04:31 2024 +0200
Commit:     Stefan Kangas <stefankangas@gmail.com>
CommitDate: Thu Sep 26 17:04:31 2024 +0200

Parent:     4c567892e04 * Clean-up unused condition-case
Merged:     emacs-29
Contained:  master
Follows:    emacs-29.1.90 (174004)

Add Python "*.pth" files to auto-mode-alist

\* lisp/progmodes/python.el (python--auto-mode-alist-regexp): New
variable.
(auto-mode-alist, python-ts-mode): Use above new variable.

1 file changed, 9 insertions(+), 2 deletions(-)
lisp/progmodes/python.el | 11 +++++++++--

modified   lisp/progmodes/python.el
@@ -293,8 +293,15 @@ outline-heading-end-regexp
 (autoload 'comint-mode "comint")
 (autoload 'help-function-arglist "help-fns")
 
+(defconst python--auto-mode-alist-regexp
+  (rx "." (or "py"
+              "pth"                     ; Python Path Configuration File
+              "pyi"                     ; Python Stub File (PEP 484)
+              "pyw")                    ; MS-Windows specific extension
+      eos))
+
 ;;;###autoload
-(add-to-list 'auto-mode-alist (cons (purecopy "\\.py[iw]?\\'") 'python-mode))
+(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode))
 ;;;###autoload
 (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))
 
@@ -7208,7 +7215,7 @@ python-ts-mode
     (when python-indent-guess-indent-offset
       (python-indent-guess-indent-offset))
 
-    (add-to-list 'auto-mode-alist '("\\.py[iw]?\\'" . python-ts-mode))
+    (add-to-list 'auto-mode-alist '(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))

#+end_src


My fix to get it to work:
@@ -7216,7 +7216,7 @@ 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 `(,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))

--text follows this line--




In GNU Emacs 31.0.50 (build 1, x86_64-apple-darwin23.6.0, NS
appkit-2487.70 Version 14.7 (Build 23H124)) of 2024-09-26 built on
C02FM1E2MD6T
Repository revision: e776903b31cf2b2d21d91cbc7d6b7dbc1e9d442f
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.7

Configured using:
'configure --with-native-compilation --with-xwidgets
--with-tree-sitter'

Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
  indent-bars-ts-mode: t
  indent-bars-mode: t
  global-jinx-mode: t
  jinx-mode: t
  rainbow-delimiters-mode: t
  org-media-note-mode: t
  display-line-numbers-mode: t
  engine-mode: t
  erc-autojoin-mode: t
  org-super-agenda-mode: t
  global-org-modern-mode: t
  global-atomic-chrome-edit-mode: t
  dired-async-mode: t
  hexl-follow-ascii: t
  consult-eglot-embark-mode: t
  eglot--managed-mode: t
  pyvenv-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  eros-mode: t
  global-treesit-fold-indicators-mode: t
  treesit-fold-indicators-mode: t
  global-treesit-fold-mode: t
  treesit-fold-mode: t
  global-ligature-mode: t
  ligature-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  whole-line-or-region-global-mode: t
  whole-line-or-region-local-mode: t
  delete-selection-mode: t
  git-identity-magit-mode: t
  global-git-gutter-mode: t
  git-gutter-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  global-auto-revert-mode: t
  server-mode: t
  wrap-region-global-mode: t
  wrap-region-mode: t
  global-corfu-mode: t
  corfu-mode: t
  flymake-mode: t
  marginalia-mode: t
  savehist-mode: t
  vertico-mode: t
  popper-echo-mode: t
  popper-mode: t
  pulsar-global-mode: t
  pulsar-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-history-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  window-divider-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/Users/bartm002/.emacs.d/elpa/indent-bars/indent-bars hides /Users/bartm002/.emacs.d/elpa/indent-bars-ts/indent-bars
/Users/bartm002/.emacs.d/elpa/indent-bars/indent-bars-ts hides /Users/bartm002/.emacs.d/elpa/indent-bars-ts/indent-bars-ts
/Users/bartm002/.emacs.d/elpa/transient-20240918.1138/transient hides /Applications/Emacs.app/Contents/Resources/lisp/transient
/Users/bartm002/.emacs.d/elpa/bind-key-20230203.2004/bind-key hides /Applications/Emacs.app/Contents/Resources/lisp/bind-key

Features:
(shadow sort mail-extr emacsbug code-cells indent-bars-ts indent-bars
modus-vivendi-theme all-the-icons-dired misearch multi-isearch jinx
rainbow-delimiters cal-iso diary-lib diary-loaddefs org-media-note
org-media-note-import org-media-note-mpv org-media-note-core org-indent
ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo
gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo
gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view jka-compr
ol-bbdb ol-w3m ol-doi org-link-doi casual-suite casual-editkit
casual-editkit-settings casual-editkit-version casual-editkit-utils
casual-editkit-constants recentf casual-symbol-overlay
casual-symbol-overlay-settings casual-symbol-overlay-version
casual-symbol-overlay-utils symbol-overlay casual-agenda
casual-agenda-settings casual-agenda-version casual-agenda-utils
casual-bookmarks casual-bookmarks-settings casual-bookmarks-version
casual-bookmarks-utils casual-avy casual-avy-version
display-line-numbers casual-re-builder casual-re-builder-settings
casual-re-builder-version casual-re-builder-utils casual-info
casual-info-settings casual-info-utils casual-info-variables
casual-info-version casual-ibuffer casual-ibuffer-filter
casual-ibuffer-settings casual-ibuffer-version casual-ibuffer-utils
casual-isearch casual-isearch-settings casual-isearch-version
casual-isearch-utils casual-dired casual-dired-settings
casual-dired-version casual-dired-sort-by casual-dired-utils
casual-dired-variables elint checkdoc wdired dired-x casual-calc
casual-calc-symbolic casual-calc-variables casual-calc-algebra calcalg3
casual-calc-financial casual-calc-stack calc-undo calc-yank
casual-calc-trail casual-calc-graphics casual-calc-fileio calc-vec
casual-calc-vector casual-calc-predicates casual-calc-units
casual-calc-trigonometric casual-calc-time casual-calc-settings
casual-calc-angle-measure casual-calc-rounding casual-calc-random
calc-comb casual-calc-logarithmic casual-calc-conversion
casual-calc-complex casual-calc-binary casual-calc-radix
casual-calc-labels casual-calc-version casual-calc-utils casual-lib
casual-lib-version casual-calc--calc calc-math calc-ext calc
calc-loaddefs calc-macs gptel gptel-org gptel-openai engine-mode
erc-join erc erc-backend erc-networks erc-common erc-compat erc-loaddefs
ox-slack ox-gfm ox-md org-transclusion org-transclusion-font-lock
org-transclusion-src-lines text-clone org-glossary pretty-hydra org-ref
org-ref-core openalex request org-ref-glossary org-ref-bibtex doi-utils
url-http url-auth url-gw nsm org-ref-utils org-ref-export citeproc
citeproc-itemgetters citeproc-cite citeproc-biblatex citeproc-bibtex
ol-bibtex citeproc-subbibs citeproc-sort citeproc-name
citeproc-formatters citeproc-proc citeproc-disamb citeproc-itemdata
citeproc-generic-elements citeproc-macro citeproc-choose citeproc-date
citeproc-number rst citeproc-context citeproc-prange citeproc-style
citeproc-locale citeproc-term citeproc-rt citeproc-lib citeproc-s
ox-pandoc ox-org org-ref-misc-links org-ref-label-link org-ref-ref-links
org-ref-citation-links org-ref-bibliography-links bibtex-completion
org-capture biblio biblio-download biblio-dissemin biblio-ieee
biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi
biblio-core ido parsebib bibtex image-dired image-dired-tags
image-dired-external image-dired-util image-mode exif
org-table-sticky-header org-mouse ob-verb ob-http ob-http-mode
ob-gnuplot ob-plantuml ob-latex ob-org ob-dot ob-ditaa ob-js ob-C
ob-shell ob-python ob-sql org-crypt org-web-tools eww mm-url gnus
nnheader range esxml-query org-omnifocus org-devonthink org-sidebar
org-ql-search org-ql-view ov org-super-agenda ht org-ql peg ts org-habit
org-duration ox-clip htmlize org-pomodoro alert log4e notifications gntp
org-modern org-eldoc ox-extra ox-odt rng-loc rng-uri rng-parse rng-match
rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util
ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox
org-attach org-contrib org-protocol iedit iedit-lib all-the-icons
all-the-icons-faces data-material data-weathericons data-octicons
data-fileicons data-faicons data-alltheicons ztree ztree-diff
ztree-diff-model ztree-dir ztree-view ztree-protocol ztree-util
emacs-everywhere atomic-chrome websocket let-alist visual-regexp
regex-tool pcre2el rxt re-builder rg rg-info-hack rg-menu rg-ibuffer
rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer
ibuffer-loaddefs elfeed-tube-mpv mpv org-timer org-clock dbus
elfeed-tube elfeed-tube-utils aio elfeed-score elfeed-score-maint
elfeed-score-scoring elfeed-score-serde elfeed-score-rule-stats
elfeed-score-rules elfeed-score-log elfeed-org elfeed-show elfeed-search
elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib url-queue
xml-query dired-async async dired-subtree dired-narrow dired-hacks-utils
dired-aux x509-mode x509-asn1-mode multiple-cursors
mc-separate-operations rectangular-region-mode mc-mark-pop mc-edit-lines
mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors
multiple-cursors-core rect impostman verb verb-util lua-mode yaml-mode
ob-applescript applescript-mode rjsx-mode sgml-mode facemenu js2-mode
etags fileloop js c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine ob-racket racket-mode racket-bug-report
racket-lisp-mode racket-collection tq racket-repl-buffer-name
racket-stepper racket-shell racket-logger racket-profile racket-package
racket-smart-open racket-xp racket-xp-complete racket-imenu racket-edit
hideshow racket-repl semantic/symref/grep grep semantic/symref
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw cedet racket-show face-remap pos-tip racket-eldoc
racket-scribble-anchor racket-describe racket-scribble racket-visit
racket-complete racket-common racket-parens racket-indent
racket-font-lock racket-ppss racket-keywords-and-builtins racket-doc
racket-browse-url racket-cmd racket-back-end racket-util racket-custom
dape hexl gdb-mi bindat gud tree-widget repeat consult-eglot-embark
consult-eglot embark-consult consult magit-bookmark bookmark eglot
external-completion jsonrpc ert ewoc pdb-capf auto-virtualenv python
pyvenv ruff-format reformatter goto-chg undo-tree eros
treesit-fold-indicators treesit-fold treesit-fold-summary
treesit-fold-parsers treesit-fold-util fringe-helper string-inflection
ligature try yasnippet-classic-snippets yasnippet-snippets yasnippet
ejc-sql-conf epa-file ejc-sql ejc-completion-common ejc-doc
ejc-interaction ejc-eldoc ejc-format ejc-result-buffer ejc-result-mode
cua-base ejc-lib clomacs simple-httpd net-utils cider tramp-sh
cider-debug cider-browse-ns cider-mode cider-xref-backend cider-find
cider-inspector cider-completion cider-profile cider-eval cider-jar
arc-mode archive-mode cider-repl-history cider-repl cider-resolve
cider-test cider-overlays cider-stacktrace cider-doc cider-browse-spec
cider-clojuredocs cider-eldoc cider-docstring shr pixel-fill kinsoku
url-file svg xml dom cider-client cider-common xref
cider-completion-context cider-connection cider-popup sesman-browser
nrepl-client cider-util tramp trampver tramp-integration tramp-message
tramp-compat parse-time iso8601 tramp-loaddefs sesman vc queue
nrepl-dict spinner clojure-mode lisp-mnt align parseedn parseclj-parser
parseclj-lex parseclj-alist flymake-sqlfluff sql view unfill
whole-line-or-region default-text-scale hl-line delsel desktop frameset
srht vtable plz git-identity git-link magit-lfs git-timemachine vc-git
vc-dispatcher git-gutter magit-submodule magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit magit-repos magit-apply magit-wip magit-log
which-func magit-diff smerge-mode diff diff-mode track-changes
git-commit log-edit message sendmail yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailheader pcvs-util add-log magit-core magit-autorevert autorevert
filenotify magit-margin magit-transient magit-process with-editor server
magit-mode benchmark magit-git magit-base magit-section cursor-sensor
crm wrap-region elec-pair move-text corfu exec-path-from-shell
flymake-aspell ispell mode-local flymake project compile
text-property-search transient use-package-delight marginalia embark-org
org-element org-persist xdg org-id org-refile org-element-ast inline
avl-tree embark ffap savehist orderless vertico eat term disp-table
ehelp shell em-smart esh-mode esh-var eshell esh-cmd generator esh-ext
esh-proc esh-opt esh-io esh-arg esh-module esh-module-loaddefs esh-util
files-x ace-window avy transpose-frame popper-echo popper helpful
cc-langs cc-vars cc-defs imenu trace cl-print edebug debug backtrace
info-look f help-fns radix-tree elisp-refs s dash pulsar pulse color
cus-edit pp cus-load wid-edit modus-operandi-theme modus-themes
use-package-bind-key bind-key easy-mmode delight comp comp-cstr warnings
comp-run comp-common use-package-ensure use-package-core org ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie
treesit executable ob-comint org-pcomplete pcomplete comint ansi-osc
ansi-color org-list org-footnote org-faces org-entities time-date
noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol
org-fold org-fold-core org-keys oc org-loaddefs thingatpt advice
find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs
all-the-icons-dired-autoloads all-the-icons-autoloads
applescript-mode-autoloads atomic-chrome-autoloads
auto-virtualenv-autoloads bind-key-autoloads cape-autoloads
casual-suite-autoloads casual-editkit-autoloads casual-agenda-autoloads
casual-bookmarks-autoloads casual-re-builder-autoloads
casual-info-autoloads casual-avy-autoloads casual-ibuffer-autoloads
casual-dired-autoloads casual-isearch-autoloads casual-calc-autoloads
casual-symbol-overlay-autoloads casual-lib-autoloads
citar-embark-autoloads citar-autoloads clomacs-autoloads cider-autoloads
clojure-mode-autoloads cm-mode-autoloads code-cells-autoloads
combobulate-autoloads consult-dir-autoloads
consult-eglot-embark-autoloads consult-eglot-autoloads corfu-autoloads
dape-autoloads deadgrep-autoloads delight-autoloads devdocs-autoloads
diff-ansi-autoloads dired-narrow-autoloads dired-subtree-autoloads
dired-hacks-utils-autoloads doom-modeline-autoloads eat-autoloads
edit-indirect-autoloads elfeed-curate-autoloads elfeed-org-autoloads
elfeed-score-autoloads elfeed-tube-mpv-autoloads elfeed-tube-autoloads
aio-autoloads elfeed-webkit-autoloads elfeed-autoloads
elisp-demos-autoloads emacs-everywhere-autoloads
embark-consult-autoloads consult-autoloads embark-autoloads
engine-mode-autoloads eros-autoloads exec-path-from-shell-autoloads
expand-region-autoloads flymake-aspell-autoloads
flymake-sqlfluff-autoloads fringe-helper-autoloads git-gutter-autoloads
git-identity-autoloads git-link-autoloads git-timemachine-autoloads
gnuplot-autoloads goto-chg-autoloads gptel-autoloads helpful-autoloads
elisp-refs-autoloads impostman-autoloads indent-bars-autoloads
indent-bars-ts-autoloads jinx-autoloads json-mode-autoloads rx
ligature-autoloads lorem-ipsum-autoloads lua-mode-autoloads
magit-lfs-autoloads marginalia-autoloads markdown-mode-autoloads
move-text-autoloads multiple-cursors-autoloads nerd-icons-autoloads
ob-applescript-autoloads ob-racket-autoloads finder-inf
orderless-autoloads org-clock-convenience-autoloads
org-contrib-autoloads org-download-autoloads async-autoloads
org-glossary-autoloads org-media-note-autoloads mpv-autoloads
org-modern-autoloads org-mru-clock-autoloads alert-autoloads
log4e-autoloads org-ref-autoloads citeproc-autoloads
bibtex-completion-autoloads biblio-autoloads biblio-core-autoloads
org-sidebar-autoloads org-ql-autoloads org-super-agenda-autoloads
org-transclusion-autoloads org-web-tools-autoloads esxml-autoloads
ov-autoloads ox-clip-autoloads htmlize-autoloads ox-pandoc-autoloads
ox-gfm-autoloads parsebib-autoloads parseedn-autoloads
parseclj-autoloads pcre2el-autoloads pdb-capf-autoloads
pdf-tools-autoloads poporg-autoloads popper-autoloads
powershell-autoloads format-spec edmacro kmacro compat cl-extra
help-mode hydra ring lv jeison-autoloads pretty-hydra-autoloads
project-tab-groups-autoloads pulsar-autoloads pydoc-autoloads
python-black-autoloads python-insert-docstring-autoloads
python-pytest-autoloads python-view-data-autoloads csv-mode-autoloads
pythonic-autoloads racket-mode-autoloads realgud-autoloads
realgud-recursive-autoloads loc-changes-autoloads
load-relative-autoloads request-autoloads restclient-autoloads
rg-autoloads rjsx-mode-autoloads js2-mode-autoloads
ruff-format-autoloads pos-tip-autoloads popup-autoloads sesman-autoloads
f-autoloads sicp-autoloads simple-httpd-autoloads spell-fu-autoloads
sql-indent-autoloads sqlformat-autoloads reformatter-autoloads
srht-autoloads plz-autoloads string-inflection-autoloads
sudo-edit-autoloads symbol-overlay-autoloads tablist-autoloads
test-simple-autoloads transpose-frame-autoloads
treemacs-icons-dired-autoloads treemacs-magit-autoloads magit-autoloads
pcase transient-autoloads magit-section-autoloads
treemacs-tab-bar-autoloads treemacs-autoloads cfrs-autoloads
posframe-autoloads ht-autoloads hydra-autoloads lv-autoloads
pfuture-autoloads ace-window-autoloads avy-autoloads
treesit-fold-autoloads ts-autoloads s-autoloads unfill-autoloads
verb-autoloads vertico-autoloads websocket-autoloads wgrep-ag-autoloads
wgrep-autoloads whole-line-or-region-autoloads with-editor-autoloads
wrap-region-autoloads info dash-autoloads x509-mode-autoloads
xr-autoloads yaml-mode-autoloads yasnippet-snippets-autoloads
yasnippet-autoloads zoom-window-autoloads ztree-autoloads package
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers
url-parse auth-source cl-seq eieio eieio-core cl-macs icons
password-cache json subr-x map byte-opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind
kqueue cocoa ns lcms2 multi-tty make-network-process native-compile
emacs)

Memory information:
((conses 16 2480530 377114) (symbols 48 90206 1823)
(strings 32 451042 23785) (string-bytes 1 13145172)
(vectors 16 228429) (vector-slots 8 3475604 315239)
(floats 8 1465 2450) (intervals 56 109803 128) (buffers 992 34))





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#73506: 31.0.50; File mode specification error caused by python.el auto-mode-alist
  2024-09-27  4:43 bug#73506: 31.0.50; File mode specification error caused by python.el auto-mode-alist Mark Barton
@ 2024-09-27  5:45 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2024-09-27  5:45 UTC (permalink / raw)
  To: Mark Barton, 73506-done

Mark Barton <mbarton98@gmail.com> writes:

> When opening Python files I would get a file-mode error and be in
> Fundamental mode. Looks like the below commit changed the
> python--auto-mode-alist-regexp constant and when adding to the
> auto-mode-alist for python-ts-mode it would put the name of the
> constant in the list rather than the value.

Thanks for the bug report.

This was already fixed by Gerd in commit b9d103c16e929, so I'm closing
this bug.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-27  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27  4:43 bug#73506: 31.0.50; File mode specification error caused by python.el auto-mode-alist Mark Barton
2024-09-27  5:45 ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.