diff options
| author | Richard M. Stallman | 1993-08-06 22:45:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-06 22:45:22 +0000 |
| commit | fe8aeef3c33fe17492786ecb64d03fe9dffced28 (patch) | |
| tree | 05c33b9e76bc110f40126e3f5082ea46eaf79eb5 /src | |
| parent | 1cdc315501d606c9fff16393e6e125779d45483a (diff) | |
| download | emacs-fe8aeef3c33fe17492786ecb64d03fe9dffced28.tar.gz emacs-fe8aeef3c33fe17492786ecb64d03fe9dffced28.zip | |
(set_poll_suppress_count): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 21 |
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 | |||
| 1265 | void | ||
| 1266 | set_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. */ |
| 1263 | int | 1284 | int |