1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00

(set_poll_suppress_count): New function.

This commit is contained in:
Richard M. Stallman 1993-08-06 22:45:22 +00:00
parent 1cdc315501
commit fe8aeef3c3

View file

@ -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