diff options
| author | Richard M. Stallman | 2005-07-23 19:09:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-23 19:09:50 +0000 |
| commit | c8e16a028e3c3cf1902a1cfe18fc9d5d4a65086b (patch) | |
| tree | 81b44e3c3ef2a82774a4cd55e72740965e51f004 | |
| parent | 8f6bda75fb08ea6c84f12f3a16389f29ee81a7b5 (diff) | |
| download | emacs-c8e16a028e3c3cf1902a1cfe18fc9d5d4a65086b.tar.gz emacs-c8e16a028e3c3cf1902a1cfe18fc9d5d4a65086b.zip | |
(read_char): Test gc_cons_threshold.
(syms_of_keyboard): staticpro Qecho_area_clear_hook.
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index b854d423cd1..194e52d2700 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2778,7 +2778,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 2778 | available, garbage collect if there has been enough | 2778 | available, garbage collect if there has been enough |
| 2779 | consing going on to make it worthwhile. */ | 2779 | consing going on to make it worthwhile. */ |
| 2780 | if (!detect_input_pending_run_timers (0) | 2780 | if (!detect_input_pending_run_timers (0) |
| 2781 | && consing_since_gc > gc_cons_combined_threshold / 2) | 2781 | && consing_since_gc > gc_cons_threshold / 2) |
| 2782 | Fgarbage_collect (); | 2782 | Fgarbage_collect (); |
| 2783 | 2783 | ||
| 2784 | redisplay (); | 2784 | redisplay (); |
| @@ -11282,6 +11282,7 @@ might happen repeatedly and make Emacs nonfunctional. */); | |||
| 11282 | doc: /* Normal hook run when clearing the echo area. */); | 11282 | doc: /* Normal hook run when clearing the echo area. */); |
| 11283 | #endif | 11283 | #endif |
| 11284 | Qecho_area_clear_hook = intern ("echo-area-clear-hook"); | 11284 | Qecho_area_clear_hook = intern ("echo-area-clear-hook"); |
| 11285 | staticpro (&Qecho_area_clear_hook); | ||
| 11285 | SET_SYMBOL_VALUE (Qecho_area_clear_hook, Qnil); | 11286 | SET_SYMBOL_VALUE (Qecho_area_clear_hook, Qnil); |
| 11286 | 11287 | ||
| 11287 | DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, | 11288 | DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag, |