Commit 6b533e9c authored by Martin Rudalics's avatar Martin Rudalics

In Fformat_mode_line always save/restore current buffer. (Bug#12387)

* xdisp.c (Fformat_mode_line): Unconditionally save/restore current
buffer.  (Bug#12387)
parent 2de39f08
2012-09-14 Martin Rudalics <rudalics@gmx.at>
* xdisp.c (Fformat_mode_line): Unconditionally save/restore
current buffer (Bug#12387).
2012-09-14 Juanma Barranquero <lekktu@gmail.com>
* makefile.w32-in ($(BLD)/alloc.$(O)): Update dependencies.
......
......@@ -21039,8 +21039,7 @@ are the selected window and the WINDOW's buffer). */)
: EQ (face, Qtool_bar) ? TOOL_BAR_FACE_ID
: DEFAULT_FACE_ID;
if (XBUFFER (buffer) != current_buffer)
old_buffer = current_buffer;
old_buffer = current_buffer;
/* Save things including mode_line_proptrans_alist,
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). */)
mode_line_proptrans_alist = Qnil;
Fselect_window (window, Qt);
if (old_buffer)
set_buffer_internal_1 (XBUFFER (buffer));
set_buffer_internal_1 (XBUFFER (buffer));
init_iterator (&it, w, -1, -1, NULL, face_id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment