aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-15 05:05:20 +0000
committerRichard M. Stallman1996-01-15 05:05:20 +0000
commit441a127ec2ea5c07053e1068c32258d2c0d916f6 (patch)
tree7ce3ae686193c51913bd82fcec7f6167770b58c5 /src/window.c
parenta728aa90299292396187d0ebf0293a1badfcc318 (diff)
downloademacs-441a127ec2ea5c07053e1068c32258d2c0d916f6.tar.gz
emacs-441a127ec2ea5c07053e1068c32258d2c0d916f6.zip
(display_buffer_1): Don't deiconify the selected frame.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c13
1 files changed, 11 insertions, 2 deletions
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.")
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
1952static Lisp_Object 1960static Lisp_Object
1953display_buffer_1 (window) 1961display_buffer_1 (window)
@@ -1956,7 +1964,8 @@ display_buffer_1 (window)
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;