Emacs is freezing when trying to insert a class attribute comment when it's not at the end. E.g.,
class Foo:
_bar: int
"""Some attribute."""
_biz: int
"""Another attribute."""
I cannot edit the above to create the below
class Foo:
_bar: int
"""Some attribute."""
_bat: int
"""I can type the 2 quotes but the 3rd causes a freeze!!"""
_biz: int
"""Another attribute."""
but I can add one at the very end, e.g.,
class Foo:
_bar: int
"""Some attribute."""
_biz: int
"""Another attribute."""
_winning: int
"""This works!"""
This happens both with and without the -Q
option.
Has anyone else ever seen this behavior? Toubleshooting steps are much appreciated!!
- OS: MacOS 12.6
- Emacs Version: 28.2 installed via Homebrew
Output of brew info --cask emacs
:
==> emacs: 28.2
https://emacsformacosx.com/
/usr/local/Caskroom/emacs/28.2 (5 files, 275KB)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/emacs.rb
==> Name
Emacs
==> Description
Text editor
==> Artifacts
Emacs.app (App)
/Applications/Emacs.app/Contents/MacOS/Emacs -> emacs (Binary)
/Applications/Emacs.app/Contents/MacOS/bin/ebrowse (Binary)
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient (Binary)
/Applications/Emacs.app/Contents/MacOS/bin/etags (Binary)
/Applications/Emacs.app/Contents/Resources/man/man1/ebrowse.1.gz (Manpage)
/Applications/Emacs.app/Contents/Resources/man/man1/emacs.1.gz (Manpage)
/Applications/Emacs.app/Contents/Resources/man/man1/emacsclient.1.gz (Manpage)
/Applications/Emacs.app/Contents/Resources/man/man1/etags.1.gz (Manpage)
==> Analytics
install: 3,531 (30 days), 10,356 (90 days), 43,386 (365 days)
Update: Rolling back to Emacs 27.2 resolves this issue.
--debug-on-error
might help trace the problem. There are other options for triggering debugging too, to--debug-on-{event,message,next-call,quit,signal}
. – slackline Jan 07 '24 at 18:50