# HG changeset patch # User Richard M. Stallman # Date 753920104 0 # Node ID 76f878905c65b6f75ece81d111e090bf6e140d72 # Parent 976d7492e00e3d07855e5630340df0c290c1f3b9 (window_loop, case DELETE_BUFFER_WINDOWS): Select a new buffer only if w is selected window. diff -r 976d7492e00e -r 76f878905c65 src/window.c --- a/src/window.c Sun Nov 21 10:04:52 1993 +0000 +++ b/src/window.c Sun Nov 21 22:15:04 1993 +0000 @@ -1212,7 +1212,8 @@ new_buffer = Fget_buffer_create (build_string ("*scratch*")); Fset_window_buffer (w, new_buffer); - Fset_buffer (XWINDOW (w)->buffer); + if (EQ (w, selected_window)) + Fset_buffer (XWINDOW (w)->buffer); } else Fdelete_window (w);