aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f741c5c4cf..5cda8241916 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-09-14 Martin Rudalics <rudalics@gmx.at>
2
3 * xdisp.c (Fformat_mode_line): Unconditionally save/restore
4 current buffer (Bug#12387).
5
12012-09-14 Juanma Barranquero <lekktu@gmail.com> 62012-09-14 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies. 8 * makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies.
diff --git a/src/xdisp.c b/src/xdisp.c
index e9d9595d91e..320998a5713 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21039,8 +21039,7 @@ are the selected window and the WINDOW's buffer). */)
21039 : EQ (face, Qtool_bar) ? TOOL_BAR_FACE_ID 21039 : EQ (face, Qtool_bar) ? TOOL_BAR_FACE_ID
21040 : DEFAULT_FACE_ID; 21040 : DEFAULT_FACE_ID;
21041 21041
21042 if (XBUFFER (buffer) != current_buffer) 21042 old_buffer = current_buffer;
21043 old_buffer = current_buffer;
21044 21043
21045 /* Save things including mode_line_proptrans_alist, 21044 /* Save things including mode_line_proptrans_alist,
21046 and set that to nil so that we don't alter the outer value. */ 21045 and set that to nil so that we don't alter the outer value. */
@@ -21051,8 +21050,7 @@ are the selected window and the WINDOW's buffer). */)
21051 mode_line_proptrans_alist = Qnil; 21050 mode_line_proptrans_alist = Qnil;
21052 21051
21053 Fselect_window (window, Qt); 21052 Fselect_window (window, Qt);
21054 if (old_buffer) 21053 set_buffer_internal_1 (XBUFFER (buffer));
21055 set_buffer_internal_1 (XBUFFER (buffer));
21056 21054
21057 init_iterator (&it, w, -1, -1, NULL, face_id); 21055 init_iterator (&it, w, -1, -1, NULL, face_id);
21058 21056