diff options
| author | Martin Rudalics | 2012-08-28 16:09:43 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-08-28 16:09:43 +0200 |
| commit | 37b9743e79bac608a45fade0744248446aaa0a33 (patch) | |
| tree | f3948554353f52c73551938f8c93fb22b398f3e7 | |
| parent | 457294dd118317db8dee40a44db33c51e73e4a80 (diff) | |
| download | emacs-37b9743e79bac608a45fade0744248446aaa0a33.tar.gz emacs-37b9743e79bac608a45fade0744248446aaa0a33.zip | |
In Fset_window_configuration install revison of reverted fix.
* window.c (Fset_window_configuration): Install revision of reverted
fix.
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/window.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4bde0cf1df8..2521ddc4144 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | 2012-08-28 Martin Rudalics <rudalics@gmx.at> | 1 | 2012-08-28 Martin Rudalics <rudalics@gmx.at> |
| 2 | 2 | ||
| 3 | * window.c (Fset_window_configuration): Remove handling of | 3 | * window.c (Fset_window_configuration): Remove handling of |
| 4 | auto-buffer-name window parameter. | 4 | auto-buffer-name window parameter. Install revision of reverted |
| 5 | fix. | ||
| 5 | 6 | ||
| 6 | 2012-08-28 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2012-08-28 Dmitry Antipov <dmantipov@yandex.ru> |
| 7 | 8 | ||
diff --git a/src/window.c b/src/window.c index 070cc2397e6..38124cb13a9 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -5615,6 +5615,21 @@ the return value is nil. Otherwise the value is t. */) | |||
| 5615 | int previous_frame_menu_bar_lines = FRAME_MENU_BAR_LINES (f); | 5615 | int previous_frame_menu_bar_lines = FRAME_MENU_BAR_LINES (f); |
| 5616 | int previous_frame_tool_bar_lines = FRAME_TOOL_BAR_LINES (f); | 5616 | int previous_frame_tool_bar_lines = FRAME_TOOL_BAR_LINES (f); |
| 5617 | 5617 | ||
| 5618 | /* Don't do this within the main loop below: This may call Lisp | ||
| 5619 | code and is thus potentially unsafe while input is blocked. */ | ||
| 5620 | for (k = 0; k < saved_windows->header.size; k++) | ||
| 5621 | { | ||
| 5622 | p = SAVED_WINDOW_N (saved_windows, k); | ||
| 5623 | window = p->window; | ||
| 5624 | w = XWINDOW (window); | ||
| 5625 | if (!NILP (w->buffer) | ||
| 5626 | && !EQ (w->buffer, p->buffer) | ||
| 5627 | && !NILP (BVAR (XBUFFER (p->buffer), name))) | ||
| 5628 | /* If a window we restore gets another buffer, record the | ||
| 5629 | window's old buffer. */ | ||
| 5630 | call1 (Qrecord_window_buffer, window); | ||
| 5631 | } | ||
| 5632 | |||
| 5618 | /* The mouse highlighting code could get screwed up | 5633 | /* The mouse highlighting code could get screwed up |
| 5619 | if it runs during this. */ | 5634 | if it runs during this. */ |
| 5620 | BLOCK_INPUT; | 5635 | BLOCK_INPUT; |