comparison src/window.c @ 14175:ace33b55f549

(display_buffer_1): Don't deiconify the selected frame.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Jan 1996 05:05:20 +0000
parents 672017f09b0c
children ee40177f6c68
comparison
equal deleted inserted replaced
14174:b986e1fb97a5 14175:ace33b55f549
1945 1945
1946 windows_or_buffers_changed++; 1946 windows_or_buffers_changed++;
1947 return window; 1947 return window;
1948 } 1948 }
1949 1949
1950 /* Deiconify the frame containing the window WINDOW, then return WINDOW. */ 1950 /* Deiconify the frame containing the window WINDOW,
1951 unless it is the selected frame;
1952 then return WINDOW.
1953
1954 The reason for the exception for the selected frame
1955 is that it seems better not to change the selected frames visibility
1956 merely because of displaying a different buffer in it.
1957 The deiconification is useful when a buffer gets shown in
1958 another frame that you were not using lately. */
1951 1959
1952 static Lisp_Object 1960 static Lisp_Object
1953 display_buffer_1 (window) 1961 display_buffer_1 (window)
1954 Lisp_Object window; 1962 Lisp_Object window;
1955 { 1963 {
1956 #ifdef MULTI_FRAME 1964 #ifdef MULTI_FRAME
1957 FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (window))); 1965 FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
1958 FRAME_SAMPLE_VISIBILITY (f); 1966 FRAME_SAMPLE_VISIBILITY (f);
1959 if (FRAME_ICONIFIED_P (f)) 1967 if (FRAME_ICONIFIED_P (f)
1968 && f != selected_frame)
1960 Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window))); 1969 Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
1961 #endif 1970 #endif
1962 return window; 1971 return window;
1963 } 1972 }
1964 1973