From: Karl Heuer Date: Wed, 17 Jan 1996 19:03:02 +0000 (+0000) Subject: (replace_buffer_in_all_windows): Don't change selected X-Git-Tag: emacs-19.34~1656 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27abb84f2a81b49a95b6d0a437f9be0669b571e8;p=emacs.git (replace_buffer_in_all_windows): Don't change selected window, even temporarily; that has undesirable side effects. --- diff --git a/src/window.c b/src/window.c index 41b89673afd..4939a195fe6 100644 --- a/src/window.c +++ b/src/window.c @@ -1635,25 +1635,14 @@ void 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