all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rhstanton@berkeley.edu, 54996@debbugs.gnu.org
Subject: bug#54996: Emacs hangs when editing Python code with debug-on-error set to t
Date: Mon, 18 Apr 2022 11:45:30 +0200	[thread overview]
Message-ID: <87fsmak9mt.fsf@gnus.org> (raw)
In-Reply-To: <83mtgjvt84.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Apr 2022 08:46:51 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> 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.

Nope, just font locking.

> It is also not clear to me whether I should insert ‘ or ' (I tried
> both).

It's '

>> 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.

Hm, yes...

>> 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.

Do you have any suggestions about where to put a breakpoint?  I tried to
put a breakpoint on call_debugger, but nothing...

My test case is:

gdb --args ./src/emacs -geometry -0+0 --eval "(setq debug-on-error t)" -Q  /tmp/foo.py

with foo.py containing just that triple-quoted string.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-04-18  9:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-17 20:16 bug#54996: Emacs hangs when editing Python code with debug-on-error set to t Richard Stanton
2022-04-17 20:43 ` Lars Ingebrigtsen
2022-04-18  5:46   ` Eli Zaretskii
2022-04-18  9:45     ` Lars Ingebrigtsen [this message]
2022-04-18 10:02       ` Eli Zaretskii
2022-04-18 11:07         ` Lars Ingebrigtsen
2022-04-18 11:18           ` Lars Ingebrigtsen
2022-04-18 14:17             ` Philipp Stephani
2022-04-18 14:23               ` Lars Ingebrigtsen
2022-04-18 10:56     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsmak9mt.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54996@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rhstanton@berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.