aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-06 22:45:22 +0000
committerRichard M. Stallman1993-08-06 22:45:22 +0000
commitfe8aeef3c33fe17492786ecb64d03fe9dffced28 (patch)
tree05c33b9e76bc110f40126e3f5082ea46eaf79eb5 /src/keyboard.c
parent1cdc315501d606c9fff16393e6e125779d45483a (diff)
downloademacs-fe8aeef3c33fe17492786ecb64d03fe9dffced28.tar.gz
emacs-fe8aeef3c33fe17492786ecb64d03fe9dffced28.zip
(set_poll_suppress_count): New function.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c21
1 files changed, 21 insertions, 0 deletions
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 ()
1258 } 1258 }
1259#endif 1259#endif
1260} 1260}
1261
1262/* Set the value of poll_suppress_count to COUNT
1263 and start or stop polling accordingly. */
1264
1265void
1266set_poll_suppress_count (count)
1267 int count;
1268{
1269#ifdef POLL_FOR_INPUT
1270 if (count == 0 && poll_suppress_count != 0)
1271 {
1272 poll_suppress_count = 1;
1273 start_polling ();
1274 }
1275 else if (count != 0 && poll_suppress_count == 0)
1276 {
1277 stop_polling ();
1278 }
1279 poll_suppress_count = count;
1280#endif
1281}
1261 1282
1262/* Applying the control modifier to CHARACTER. */ 1283/* Applying the control modifier to CHARACTER. */
1263int 1284int