emacs-devel
[Top][All Lists]
Advanced

[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))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]