# HG changeset patch # User Richard M. Stallman # Date 821682320 0 # Node ID ace33b55f549b64eceb9dde6146d593073a148a9 # Parent b986e1fb97a5af67ec54915bbcf85824e0875e4f (display_buffer_1): Don't deiconify the selected frame. diff -r b986e1fb97a5 -r ace33b55f549 src/window.c --- a/src/window.c Mon Jan 15 01:35:45 1996 +0000 +++ b/src/window.c Mon Jan 15 05:05:20 1996 +0000 @@ -1947,7 +1947,15 @@ 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 @@ #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;