aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorEli Zaretskii2015-10-24 17:58:34 +0300
committerEli Zaretskii2015-10-24 17:58:34 +0300
commit7a6968b45f2b93d984c5c3fcd5fce68d6e5b6ea9 (patch)
treea76a59a8fb35f84b507d02a4580bd58c15fa1939 /src/window.c
parent59a2ad3e75442f89f88e2cac304b09fb50e70cb6 (diff)
downloademacs-7a6968b45f2b93d984c5c3fcd5fce68d6e5b6ea9.tar.gz
emacs-7a6968b45f2b93d984c5c3fcd5fce68d6e5b6ea9.zip
An even better fix for bug#21739
* src/window.c (set_window_buffer): If the window is the frame's selected window, set update_mode_lines, not the window's update_mode_line flag. (Bug#21739) * src/buffer.c (Fkill_buffer): Undo last change. (set_update_modelines_for_buf): Function deleted.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 8ed0f32a694..a8605ee628c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3271,7 +3271,14 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer,
3271 /* Maybe we could move this into the `if' but it's not obviously safe and 3271 /* Maybe we could move this into the `if' but it's not obviously safe and
3272 I doubt it's worth the trouble. */ 3272 I doubt it's worth the trouble. */
3273 wset_redisplay (w); 3273 wset_redisplay (w);
3274 w->update_mode_line = true; 3274 /* If this window is the selected window on its frame, set the
3275 global variable update_mode_lines, so that x_consider_frame_title
3276 will consider this frame's title for rtedisplay. */
3277 Lisp_Object fselected_window = XFRAME (WINDOW_FRAME (w))->selected_window;
3278 if (WINDOWP (fselected_window) && XWINDOW (fselected_window) == w)
3279 update_mode_lines = 42;
3280 else
3281 w->update_mode_line = true;
3275 3282
3276 /* We must select BUFFER to run the window-scroll-functions and to look up 3283 /* We must select BUFFER to run the window-scroll-functions and to look up
3277 the buffer-local value of Vwindow_point_insertion_type. */ 3284 the buffer-local value of Vwindow_point_insertion_type. */