From: Richard M. Stallman Date: Fri, 6 Aug 1993 22:45:22 +0000 (+0000) Subject: (set_poll_suppress_count): New function. X-Git-Tag: emacs-19.34~11376 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fe8aeef3c33fe17492786ecb64d03fe9dffced28;p=emacs.git (set_poll_suppress_count): New function. --- diff --git a/src/keyboard.c b/src/keyboard.c index b0534f1dd1f..1a7821acb37 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1258,6 +1258,27 @@ stop_polling () } #endif } + +/* Set the value of poll_suppress_count to COUNT + and start or stop polling accordingly. */ + +void +set_poll_suppress_count (count) + int count; +{ +#ifdef POLL_FOR_INPUT + if (count == 0 && poll_suppress_count != 0) + { + poll_suppress_count = 1; + start_polling (); + } + else if (count != 0 && poll_suppress_count == 0) + { + stop_polling (); + } + poll_suppress_count = count; +#endif +} /* Applying the control modifier to CHARACTER. */ int