aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-12 22:27:28 +0000
committerRichard M. Stallman2001-12-12 22:27:28 +0000
commitbb336f8daef1e22f5545d1a9d26d72eca32c4444 (patch)
treef16ae05f30cfb08a822ad924d59c0d5737aa9ed6
parent8157ac1432ce725e0fe392cf50b5b93e5546f96f (diff)
downloademacs-bb336f8daef1e22f5545d1a9d26d72eca32c4444.tar.gz
emacs-bb336f8daef1e22f5545d1a9d26d72eca32c4444.zip
(CLEAR_FACE_CACHE_COUNT): Redefine as 500.
(redisplay_internal): Call clear_image_cache only for window terminals.
-rw-r--r--src/xdisp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 4fed4ac4159..2f3ced268bc 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7231,7 +7231,7 @@ x_consider_frame_title (frame)
7231 frame_title_ptr so that display_mode_element will output into it; 7231 frame_title_ptr so that display_mode_element will output into it;
7232 then display the title. */ 7232 then display the title. */
7233 obuf = current_buffer; 7233 obuf = current_buffer;
7234 Fset_buffer (XWINDOW (f->selected_window)->buffer); 7234 set_buffer_internal_1 (XBUFFER (XWINDOW (f->selected_window)->buffer));
7235 fmt = FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format; 7235 fmt = FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format;
7236 frame_title_ptr = frame_title_buf; 7236 frame_title_ptr = frame_title_buf;
7237 init_iterator (&it, XWINDOW (f->selected_window), -1, -1, 7237 init_iterator (&it, XWINDOW (f->selected_window), -1, -1,
@@ -7239,7 +7239,7 @@ x_consider_frame_title (frame)
7239 display_mode_element (&it, 0, -1, -1, fmt); 7239 display_mode_element (&it, 0, -1, -1, fmt);
7240 len = frame_title_ptr - frame_title_buf; 7240 len = frame_title_ptr - frame_title_buf;
7241 frame_title_ptr = NULL; 7241 frame_title_ptr = NULL;
7242 set_buffer_internal (obuf); 7242 set_buffer_internal_1 (obuf);
7243 7243
7244 /* Set the title only if it's changed. This avoids consing in 7244 /* Set the title only if it's changed. This avoids consing in
7245 the common case where it hasn't. (If it turns out that we've 7245 the common case where it hasn't. (If it turns out that we've
@@ -8186,7 +8186,7 @@ debug_method_add (w, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9)
8186 Every CLEAR_FACE_CACHE_COUNT full redisplays, the face cache is 8186 Every CLEAR_FACE_CACHE_COUNT full redisplays, the face cache is
8187 cleared. */ 8187 cleared. */
8188 8188
8189#define CLEAR_FACE_CACHE_COUNT 10000 8189#define CLEAR_FACE_CACHE_COUNT 500
8190static int clear_face_cache_count; 8190static int clear_face_cache_count;
8191 8191
8192/* Record the previous terminal frame we displayed. */ 8192/* Record the previous terminal frame we displayed. */
@@ -8813,6 +8813,10 @@ redisplay_internal (preserve_echo_area)
8813 8813
8814 if (FRAME_WINDOW_P (f) || f == sf) 8814 if (FRAME_WINDOW_P (f) || f == sf)
8815 { 8815 {
8816 if (clear_face_cache_count % 50 == 0
8817 && FRAME_WINDOW_P (f))
8818 clear_image_cache (f, 0);
8819
8816 /* Mark all the scroll bars to be removed; we'll redeem 8820 /* Mark all the scroll bars to be removed; we'll redeem
8817 the ones we want when we redisplay their windows. */ 8821 the ones we want when we redisplay their windows. */
8818 if (condemn_scroll_bars_hook) 8822 if (condemn_scroll_bars_hook)