diff options
| author | Martin Rudalics | 2012-09-14 08:55:38 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-09-14 08:55:38 +0200 |
| commit | 6b533e9cb5c66766cbc2a222d86c2d441e7d2e43 (patch) | |
| tree | a5252fd2f83d9c15ff3afb8bba6a190f38b5fcdf /src | |
| parent | 2de39f089a464cc265b6c583684226d1a94abbfa (diff) | |
| download | emacs-6b533e9cb5c66766cbc2a222d86c2d441e7d2e43.tar.gz emacs-6b533e9cb5c66766cbc2a222d86c2d441e7d2e43.zip | |
In Fformat_mode_line always save/restore current buffer. (Bug#12387)
* xdisp.c (Fformat_mode_line): Unconditionally save/restore current
buffer. (Bug#12387)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
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 @@ | |||
| 1 | 2012-09-14 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * xdisp.c (Fformat_mode_line): Unconditionally save/restore | ||
| 4 | current buffer (Bug#12387). | ||
| 5 | |||
| 1 | 2012-09-14 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-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 | ||