From: Giuseppe Scrivano Date: Fri, 18 Sep 2009 10:41:22 +0000 (+0200) Subject: Block yield when input is blocked. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ead73532195b78e7cd54e050fb0d6dac64364d6;p=emacs.git Block yield when input is blocked. --- diff --git a/src/thread.c b/src/thread.c index f5d5d3ce4da..4143da714b0 100644 --- a/src/thread.c +++ b/src/thread.c @@ -1,6 +1,7 @@ #include #include "lisp.h" +#include "blockinput.h" #include void mark_byte_stack P_ ((struct byte_stack *)); @@ -99,7 +100,7 @@ unmark_threads (void) int thread_inhibit_yield_p () { - return inhibit_yield_counter > 0; + return inhibit_yield_counter || interrupt_input_blocked; } static void