diff options
| author | Richard M. Stallman | 1995-04-14 18:24:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-14 18:24:00 +0000 |
| commit | f82aff7c94ffcf2465177b48986bafe06de201c6 (patch) | |
| tree | 84cd9f26f02bba7e92448fe6ed447bdeab6072e8 /src | |
| parent | 133bd29b683a4a1c6506eae18239d0b60c386771 (diff) | |
| download | emacs-f82aff7c94ffcf2465177b48986bafe06de201c6.tar.gz emacs-f82aff7c94ffcf2465177b48986bafe06de201c6.zip | |
(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')
| -rw-r--r-- | src/xdisp.c | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index f8be6628b01..72d69723ef7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -316,6 +316,7 @@ message_dolog (m, len, nlflag) | |||
| 316 | Check to see if the most recent message looks a lot like the previous one. | 316 | Check to see if the most recent message looks a lot like the previous one. |
| 317 | Return 0 if different, 1 if the new one should just replace it, or a | 317 | Return 0 if different, 1 if the new one should just replace it, or a |
| 318 | value N > 1 if we should also append " [N times]". */ | 318 | value N > 1 if we should also append " [N times]". */ |
| 319 | |||
| 319 | static int | 320 | static int |
| 320 | message_log_check_duplicate (prev_bol, this_bol) | 321 | message_log_check_duplicate (prev_bol, this_bol) |
| 321 | int prev_bol, this_bol; | 322 | int prev_bol, this_bol; |
| @@ -323,8 +324,8 @@ message_log_check_duplicate (prev_bol, this_bol) | |||
| 323 | int i; | 324 | int i; |
| 324 | int len = Z - 1 - this_bol; | 325 | int len = Z - 1 - this_bol; |
| 325 | int seen_dots = 0; | 326 | int seen_dots = 0; |
| 326 | char *p1 = BUF_CHAR_ADDRESS (current_buffer, prev_bol); | 327 | unsigned char *p1 = BUF_CHAR_ADDRESS (current_buffer, prev_bol); |
| 327 | char *p2 = BUF_CHAR_ADDRESS (current_buffer, this_bol); | 328 | unsigned char *p2 = BUF_CHAR_ADDRESS (current_buffer, this_bol); |
| 328 | 329 | ||
| 329 | for (i = 0; i < len; i++) | 330 | for (i = 0; i < len; i++) |
| 330 | { | 331 | { |
| @@ -654,29 +655,6 @@ prepare_menu_bars () | |||
| 654 | int all_windows; | 655 | int all_windows; |
| 655 | struct gcpro gcpro1, gcpro2; | 656 | struct gcpro gcpro1, gcpro2; |
| 656 | 657 | ||
| 657 | if (noninteractive) | ||
| 658 | return; | ||
| 659 | |||
| 660 | /* Set the visible flags for all frames. | ||
| 661 | Do this before checking for resized or garbaged frames; they want | ||
| 662 | to know if their frames are visible. | ||
| 663 | See the comment in frame.h for FRAME_SAMPLE_VISIBILITY. */ | ||
| 664 | { | ||
| 665 | Lisp_Object tail, frame; | ||
| 666 | |||
| 667 | FOR_EACH_FRAME (tail, frame) | ||
| 668 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | ||
| 669 | } | ||
| 670 | |||
| 671 | /* Notice any pending interrupt request to change frame size. */ | ||
| 672 | do_pending_window_change (); | ||
| 673 | |||
| 674 | if (frame_garbaged) | ||
| 675 | { | ||
| 676 | redraw_garbaged_frames (); | ||
| 677 | frame_garbaged = 0; | ||
| 678 | } | ||
| 679 | |||
| 680 | all_windows = (update_mode_lines || buffer_shared > 1 | 658 | all_windows = (update_mode_lines || buffer_shared > 1 |
| 681 | || clip_changed || windows_or_buffers_changed); | 659 | || clip_changed || windows_or_buffers_changed); |
| 682 | 660 | ||
| @@ -774,7 +752,13 @@ redisplay () | |||
| 774 | Lisp_Object tail, frame; | 752 | Lisp_Object tail, frame; |
| 775 | 753 | ||
| 776 | FOR_EACH_FRAME (tail, frame) | 754 | FOR_EACH_FRAME (tail, frame) |
| 777 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | 755 | { |
| 756 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | ||
| 757 | |||
| 758 | /* Clear out all the display lines in which we will generate the | ||
| 759 | glyphs to display. */ | ||
| 760 | init_desired_glyphs (XFRAME (frame)); | ||
| 761 | } | ||
| 778 | } | 762 | } |
| 779 | 763 | ||
| 780 | /* Notice any pending interrupt request to change frame size. */ | 764 | /* Notice any pending interrupt request to change frame size. */ |
| @@ -786,6 +770,8 @@ redisplay () | |||
| 786 | frame_garbaged = 0; | 770 | frame_garbaged = 0; |
| 787 | } | 771 | } |
| 788 | 772 | ||
| 773 | prepare_menu_bars (); | ||
| 774 | |||
| 789 | if (clip_changed || windows_or_buffers_changed | 775 | if (clip_changed || windows_or_buffers_changed |
| 790 | || (!NILP (w->column_number_displayed) | 776 | || (!NILP (w->column_number_displayed) |
| 791 | && XFASTINT (w->column_number_displayed) != current_column ())) | 777 | && XFASTINT (w->column_number_displayed) != current_column ())) |