Mercurial > emacs
changeset 4475:e9389ba6e04c
(set_poll_suppress_count): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 06 Aug 1993 22:45:22 +0000 |
parents | 23d5b09bd218 |
children | e7de1b007447 |
files | src/keyboard.c |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Fri Aug 06 22:44:00 1993 +0000 +++ b/src/keyboard.c Fri Aug 06 22:45:22 1993 +0000 @@ -1258,6 +1258,27 @@ } #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