(window_loop): In DELETE_BUFFER_WINDOWS case, reset

dedicated status of window before attempting to display another
buffer in it.
This commit is contained in:
Martin Rudalics 2008-11-14 13:53:21 +00:00
parent 8fc29035f3
commit 1c33c906e0
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-11-14 Martin Rudalics <rudalics@gmx.at>
* window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
dedicated status of window before attempting to display another
buffer in it.
2008-11-14 Juanma Barranquero <lekktu@gmail.com>
* msdos.c (Fmsdos_long_file_names):

View file

@ -2278,6 +2278,8 @@ window_loop (type, obj, mini, frames)
display there. */
Lisp_Object buffer;
buffer = Fother_buffer (obj, Qnil, w->frame);
/* Reset dedicated state of window. */
w->dedicated = Qnil;
Fset_window_buffer (window, buffer, Qnil);
if (EQ (window, selected_window))
Fset_buffer (w->buffer);