[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwind-protect within while-no-input
From: |
Stefan Monnier |
Subject: |
Re: unwind-protect within while-no-input |
Date: |
Sun, 26 May 2024 00:36:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> E.g. with a patch like the one below? Would it fix your case?
Nah, that one can't work. But maybe the one below?
Stefan
diff --git a/src/eval.c b/src/eval.c
index 1386ff3e764..38803ad8f5f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1726,7 +1726,10 @@ process_quit_flag (void)
if (EQ (flag, Qkill_emacs))
Fkill_emacs (Qnil, Qnil);
if (EQ (Vthrow_on_input, flag))
- Fthrow (Vthrow_on_input, Qt);
+ {
+ Vthrow_on_input = Qnil;
+ Fthrow (flag, Qt);
+ }
if (CONSP (flag)
&& 4 == XFIXNUM (Flength (flag))
&& EQ (XCAR (flag), Vdebug_on_event))
- Re: unwind-protect within while-no-input, (continued)
- Re: unwind-protect within while-no-input, Dmitry Gutov, 2024/05/14
- Re: unwind-protect within while-no-input, Stefan Monnier, 2024/05/25
- Re: unwind-protect within while-no-input, Dmitry Gutov, 2024/05/26
- Re: unwind-protect within while-no-input, Stefan Monnier, 2024/05/26
- Re: unwind-protect within while-no-input, Michael Heerdegen, 2024/05/08
Re: unwind-protect within while-no-input, Stefan Monnier, 2024/05/25