From: Richard M. Stallman Date: Mon, 15 Jan 1996 05:05:20 +0000 (+0000) Subject: (display_buffer_1): Don't deiconify the selected frame. X-Git-Tag: emacs-19.34~1685 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=441a127ec2ea5c07053e1068c32258d2c0d916f6;p=emacs.git (display_buffer_1): Don't deiconify the selected frame. --- diff --git a/src/window.c b/src/window.c index 689bf0dcb7c..8909f034817 100644 --- a/src/window.c +++ b/src/window.c @@ -1947,7 +1947,15 @@ before each command.") return window; } -/* Deiconify the frame containing the window WINDOW, then return WINDOW. */ +/* Deiconify the frame containing the window WINDOW, + unless it is the selected frame; + then return WINDOW. + + The reason for the exception for the selected frame + is that it seems better not to change the selected frames visibility + merely because of displaying a different buffer in it. + The deiconification is useful when a buffer gets shown in + another frame that you were not using lately. */ static Lisp_Object display_buffer_1 (window) @@ -1956,7 +1964,8 @@ display_buffer_1 (window) #ifdef MULTI_FRAME FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (window))); FRAME_SAMPLE_VISIBILITY (f); - if (FRAME_ICONIFIED_P (f)) + if (FRAME_ICONIFIED_P (f) + && f != selected_frame) Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window))); #endif return window;