aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-04-14 18:24:00 +0000
committerRichard M. Stallman <[email protected]>1995-04-14 18:24:00 +0000
commitf82aff7c94ffcf2465177b48986bafe06de201c6 (patch)
tree84cd9f26f02bba7e92448fe6ed447bdeab6072e8 /src/xdisp.c
parent133bd29b683a4a1c6506eae18239d0b60c386771 (diff)
(redisplay): Call init_desired_glyphs for each frame.
Call prepare_menu_bars. (prepare_menu_bars): Delete code at beginning that duplicates things done at the beginning of redisplay. (message_log_check_duplicate): Make p1 and p2 unsigned char *.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c38
1 files changed, 12 insertions, 26 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index f8be6628b0..72d69723ef 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -316,6 +316,7 @@ message_dolog (m, len, nlflag)
Check to see if the most recent message looks a lot like the previous one.
Return 0 if different, 1 if the new one should just replace it, or a
value N > 1 if we should also append " [N times]". */
+
static int
message_log_check_duplicate (prev_bol, this_bol)
int prev_bol, this_bol;
@@ -323,8 +324,8 @@ message_log_check_duplicate (prev_bol, this_bol)
int i;
int len = Z - 1 - this_bol;
int seen_dots = 0;
- char *p1 = BUF_CHAR_ADDRESS (current_buffer, prev_bol);
- char *p2 = BUF_CHAR_ADDRESS (current_buffer, this_bol);
+ unsigned char *p1 = BUF_CHAR_ADDRESS (current_buffer, prev_bol);
+ unsigned char *p2 = BUF_CHAR_ADDRESS (current_buffer, this_bol);
for (i = 0; i < len; i++)
{
@@ -654,29 +655,6 @@ prepare_menu_bars ()
int all_windows;
struct gcpro gcpro1, gcpro2;
- if (noninteractive)
- return;
-
- /* Set the visible flags for all frames.
- Do this before checking for resized or garbaged frames; they want
- to know if their frames are visible.
- See the comment in frame.h for FRAME_SAMPLE_VISIBILITY. */
- {
- Lisp_Object tail, frame;
-
- FOR_EACH_FRAME (tail, frame)
- FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
- }
-
- /* Notice any pending interrupt request to change frame size. */
- do_pending_window_change ();
-
- if (frame_garbaged)
- {
- redraw_garbaged_frames ();
- frame_garbaged = 0;
- }
-
all_windows = (update_mode_lines || buffer_shared > 1
|| clip_changed || windows_or_buffers_changed);
@@ -774,7 +752,13 @@ redisplay ()
Lisp_Object tail, frame;
FOR_EACH_FRAME (tail, frame)
- FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
+ {
+ FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
+
+ /* Clear out all the display lines in which we will generate the
+ glyphs to display. */
+ init_desired_glyphs (XFRAME (frame));
+ }
}
/* Notice any pending interrupt request to change frame size. */
@@ -786,6 +770,8 @@ redisplay ()
frame_garbaged = 0;
}
+ prepare_menu_bars ();
+
if (clip_changed || windows_or_buffers_changed
|| (!NILP (w->column_number_displayed)
&& XFASTINT (w->column_number_displayed) != current_column ()))