# HG changeset patch # User Karl Heuer # Date 821905382 0 # Node ID c0b44d3a83121f6c87cb942cc22defc6914e780d # Parent 1343cb9005527bb329d3d466363d3065c0591fe9 (replace_buffer_in_all_windows): Don't change selected window, even temporarily; that has undesirable side effects. diff -r 1343cb900552 -r c0b44d3a8312 src/window.c --- a/src/window.c Wed Jan 17 18:03:42 1996 +0000 +++ b/src/window.c Wed Jan 17 19:03:02 1996 +0000 @@ -1635,25 +1635,14 @@ replace_buffer_in_all_windows (buffer) Lisp_Object buffer; { +#ifdef MULTI_KBOARD Lisp_Object tail, frame; -#ifdef MULTI_FRAME - Lisp_Object old_selected; - - old_selected = selected_window; - /* A single call to window_loop won't do the job because it only considers frames on the current keyboard. So loop manually over frames, and handle each one. */ FOR_EACH_FRAME (tail, frame) - { - Fselect_window (FRAME_SELECTED_WINDOW (XFRAME (frame))); - - window_loop (UNSHOW_BUFFER, buffer, 0, frame); - } - - if (!NILP (Fwindow_live_p (old_selected))) - Fselect_window (old_selected); + window_loop (UNSHOW_BUFFER, buffer, 0, frame); #else window_loop (UNSHOW_BUFFER, buffer, 0, Qt); #endif