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:
parent
1cdc315501
commit
fe8aeef3c3
1 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue