diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index e32d9016f6e..958b8654387 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -419,6 +419,8 @@ Lisp_Object recursive_edit_unwind (), command_loop (); | |||
| 419 | Lisp_Object Fthis_command_keys (); | 419 | Lisp_Object Fthis_command_keys (); |
| 420 | Lisp_Object Qextended_command_history; | 420 | Lisp_Object Qextended_command_history; |
| 421 | 421 | ||
| 422 | Lisp_Object Qpolling_period; | ||
| 423 | |||
| 422 | /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt | 424 | /* Address (if not 0) of EMACS_TIME to zero out if a SIGIO interrupt |
| 423 | happens. */ | 425 | happens. */ |
| 424 | EMACS_TIME *input_available_clear_time; | 426 | EMACS_TIME *input_available_clear_time; |
| @@ -1306,6 +1308,16 @@ set_poll_suppress_count (count) | |||
| 1306 | poll_suppress_count = count; | 1308 | poll_suppress_count = count; |
| 1307 | #endif | 1309 | #endif |
| 1308 | } | 1310 | } |
| 1311 | |||
| 1312 | bind_polling_period (n) | ||
| 1313 | int n; | ||
| 1314 | { | ||
| 1315 | #ifdef POLL_FOR_INPUT | ||
| 1316 | stop_polling (); | ||
| 1317 | specbind (Qpolling_period, make_number (n)); | ||
| 1318 | start_polling (); | ||
| 1319 | #endif | ||
| 1320 | } | ||
| 1309 | 1321 | ||
| 1310 | /* Applying the control modifier to CHARACTER. */ | 1322 | /* Applying the control modifier to CHARACTER. */ |
| 1311 | int | 1323 | int |
| @@ -5834,6 +5846,9 @@ syms_of_keyboard () | |||
| 5834 | Qactivate_menubar_hook = intern ("activate-menubar-hook"); | 5846 | Qactivate_menubar_hook = intern ("activate-menubar-hook"); |
| 5835 | staticpro (&Qactivate_menubar_hook); | 5847 | staticpro (&Qactivate_menubar_hook); |
| 5836 | 5848 | ||
| 5849 | Qpolling_period = intern ("polling-period"); | ||
| 5850 | staticpro (&Qpolling_period); | ||
| 5851 | |||
| 5837 | { | 5852 | { |
| 5838 | struct event_head *p; | 5853 | struct event_head *p; |
| 5839 | 5854 | ||