From 1c33c906e07585984d5ae684a92f0991b0605cb2 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Fri, 14 Nov 2008 13:53:21 +0000 Subject: [PATCH] (window_loop): In DELETE_BUFFER_WINDOWS case, reset dedicated status of window before attempting to display another buffer in it. --- src/ChangeLog | 6 ++++++ src/window.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index ef38bbf5537..f25d701d8e5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2008-11-14 Martin Rudalics + + * 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 * msdos.c (Fmsdos_long_file_names): diff --git a/src/window.c b/src/window.c index 9f71a17c696..d770822c28d 100644 --- a/src/window.c +++ b/src/window.c @@ -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); -- 2.39.2