diff options
| author | Jim Blandy | 1992-08-19 06:43:03 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-08-19 06:43:03 +0000 |
| commit | 11e82b76f2744c54e824e3a08bbae7c3746fc888 (patch) | |
| tree | 5130c6bebdce1cb8ce62fa45810199db0c113217 | |
| parent | 2f83aebe0963160193639918d6c921ab4ad58b78 (diff) | |
| download | emacs-11e82b76f2744c54e824e3a08bbae7c3746fc888.tar.gz emacs-11e82b76f2744c54e824e3a08bbae7c3746fc888.zip | |
* xdisp.c (display_mode_line): Use x_implicitly_set_name here.
* xdisp.c (redisplay, init_xdisp): Use FRAME_ROOT_WINDOW instead
of minibuf_window->prev.
* xdisp.c (decode_mode_spec): Move lots_of_dashes outside of the
function; Emacs can't use static initialized arrays inside functions.
| -rw-r--r-- | src/xdisp.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index a09c3d6d511..46d9cc2f080 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -596,7 +596,7 @@ update: | |||
| 596 | XFASTINT (w->last_point_y) = FRAME_CURSOR_Y (selected_frame); | 596 | XFASTINT (w->last_point_y) = FRAME_CURSOR_Y (selected_frame); |
| 597 | 597 | ||
| 598 | if (all_windows) | 598 | if (all_windows) |
| 599 | mark_window_display_accurate (XWINDOW (minibuf_window)->prev, 1); | 599 | mark_window_display_accurate (FRAME_ROOT_WINDOW (selected_frame), 1); |
| 600 | else | 600 | else |
| 601 | { | 601 | { |
| 602 | w->update_mode_line = Qnil; | 602 | w->update_mode_line = Qnil; |
| @@ -1781,10 +1781,10 @@ display_mode_line (w) | |||
| 1781 | if (FRAME_X_P (f) | 1781 | if (FRAME_X_P (f) |
| 1782 | && ! FRAME_MINIBUF_ONLY_P (f) | 1782 | && ! FRAME_MINIBUF_ONLY_P (f) |
| 1783 | && w == XWINDOW (f->selected_window)) | 1783 | && w == XWINDOW (f->selected_window)) |
| 1784 | x_set_name (f, ((XINT (Flength (Vframe_list)) > 1) | 1784 | x_implicitly_set_name (f, ((XINT (Flength (Vframe_list)) > 1) |
| 1785 | ? XBUFFER (w->buffer)->name | 1785 | ? XBUFFER (w->buffer)->name |
| 1786 | : Qnil), | 1786 | : Qnil), |
| 1787 | Qnil); | 1787 | Qnil); |
| 1788 | #endif | 1788 | #endif |
| 1789 | } | 1789 | } |
| 1790 | 1790 | ||
| @@ -1999,6 +1999,8 @@ display_mode_element (w, vpos, hpos, depth, minendcol, maxendcol, elt) | |||
| 1999 | /* Return a string for the output of a mode line %-spec for window W, | 1999 | /* Return a string for the output of a mode line %-spec for window W, |
| 2000 | generated by character C and width MAXWIDTH. */ | 2000 | generated by character C and width MAXWIDTH. */ |
| 2001 | 2001 | ||
| 2002 | static char lots_of_dashes[] = "--------------------------------------------------------------------------------------------------------------------------------------------"; | ||
| 2003 | |||
| 2002 | static char * | 2004 | static char * |
| 2003 | decode_mode_spec (w, c, maxwidth) | 2005 | decode_mode_spec (w, c, maxwidth) |
| 2004 | struct window *w; | 2006 | struct window *w; |
| @@ -2125,7 +2127,6 @@ decode_mode_spec (w, c, maxwidth) | |||
| 2125 | 2127 | ||
| 2126 | case '-': | 2128 | case '-': |
| 2127 | { | 2129 | { |
| 2128 | static char lots_of_dashes[] = "--------------------------------------------------------------------------------------------------------------------------------------------"; | ||
| 2129 | register char *p; | 2130 | register char *p; |
| 2130 | register int i; | 2131 | register int i; |
| 2131 | 2132 | ||
| @@ -2149,6 +2150,7 @@ decode_mode_spec (w, c, maxwidth) | |||
| 2149 | 2150 | ||
| 2150 | /* Display STRING on one line of window W, starting at HPOS. | 2151 | /* Display STRING on one line of window W, starting at HPOS. |
| 2151 | Display at position VPOS. Caller should have done get_display_line. | 2152 | Display at position VPOS. Caller should have done get_display_line. |
| 2153 | If VPOS == -1, display it as the current frame's title. | ||
| 2152 | 2154 | ||
| 2153 | TRUNCATE is GLYPH to display at end if truncated. Zero for none. | 2155 | TRUNCATE is GLYPH to display at end if truncated. Zero for none. |
| 2154 | 2156 | ||
| @@ -2327,7 +2329,7 @@ init_xdisp () | |||
| 2327 | this_line_bufpos = 0; | 2329 | this_line_bufpos = 0; |
| 2328 | 2330 | ||
| 2329 | mini_w = XWINDOW (minibuf_window); | 2331 | mini_w = XWINDOW (minibuf_window); |
| 2330 | root_window = mini_w->prev; | 2332 | root_window = FRAME_ROOT_WINDOW (XFRAME (WINDOW_FRAME (mini_w))); |
| 2331 | 2333 | ||
| 2332 | echo_area_glyphs = 0; | 2334 | echo_area_glyphs = 0; |
| 2333 | previous_echo_glyphs = 0; | 2335 | previous_echo_glyphs = 0; |