GNU bug report logs -
#54996
Emacs hangs when editing Python code with debug-on-error set to t
Previous Next
Reported by: Richard Stanton <rhstanton <at> berkeley.edu>
Date: Sun, 17 Apr 2022 20:17:02 UTC
Severity: normal
Fixed in version 28.2
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sun, 17 Apr 2022 22:43:00 +0200
> Cc: 54996 <at> debbugs.gnu.org
>
> Richard Stanton <rhstanton <at> berkeley.edu> writes:
>
> > Put the cursor right at the start of the file, on the first double
> > quote, and press ‘, the single quote character. On my machine, Emacs
> > now hangs and doesn’t respond to the keyboard. Without debug-on-error,
> > this works just fine.
>
> I can reproduce this, too (on Debian/bookworm).
And I cannot reproduce at all. Does the recipe involve the Python
interpreter in any way? If so, that might be the reason why it
doesn't reproduce here.
It is also not clear to me whether I should insert ‘ or ' (I tried
both).
> But it's bizarre that the debug-on-error setting should affect this.
> I've skimmed through python.el looking for anything obvious (like a
> `condition-case-unless-debug' but can't find anything).
Calling a debugger triggers a redisplay cycle, and maybe that explains
the problem.
> The culprit must be in python-syntax-stringify -- if I just remove that,
> the hang is gone. But there's no odd error handling there that I can
> see (unless it's hiding in syntax-ppss)... anybody got any ideas?
Catching a backtrace on the C level might explain what happens. But
since I cannot reproduce the problem, I cannot show such a backtrace,
either.
This bug report was last modified 3 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.