comparison src/window.c @ 99541:8f3f7e087ae6

(window_loop): In DELETE_BUFFER_WINDOWS case, reset dedicated status of window before attempting to display another buffer in it.
author Martin Rudalics <rudalics@gmx.at>
date Fri, 14 Nov 2008 13:49:40 +0000
parents e03a3537f4a2
children b06d87fbe42d
comparison
equal deleted inserted replaced
99540:c5c8f07bc47c 99541:8f3f7e087ae6
2276 /* If we're deleting the buffer displayed in the 2276 /* If we're deleting the buffer displayed in the
2277 only window on the frame, find a new buffer to 2277 only window on the frame, find a new buffer to
2278 display there. */ 2278 display there. */
2279 Lisp_Object buffer; 2279 Lisp_Object buffer;
2280 buffer = Fother_buffer (obj, Qnil, w->frame); 2280 buffer = Fother_buffer (obj, Qnil, w->frame);
2281 /* Reset dedicated state of window. */
2282 w->dedicated = Qnil;
2281 Fset_window_buffer (window, buffer, Qnil); 2283 Fset_window_buffer (window, buffer, Qnil);
2282 if (EQ (window, selected_window)) 2284 if (EQ (window, selected_window))
2283 Fset_buffer (w->buffer); 2285 Fset_buffer (w->buffer);
2284 } 2286 }
2285 else 2287 else