aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-08-23 06:55:46 +0000
committerKarl Heuer1994-08-23 06:55:46 +0000
commit3d378fdf2331250bacceb806c854468c3989fddc (patch)
tree1982ec469b60794ad5618fde7e38ce89e13d2a58 /src
parent1ee245eb301a0bd764e2e86ed913394b2ef70c77 (diff)
downloademacs-3d378fdf2331250bacceb806c854468c3989fddc.tar.gz
emacs-3d378fdf2331250bacceb806c854468c3989fddc.zip
(Fmake_frame_invisible, Ficonify_frame): Don't switch frames.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 74ee07b75cf..35007249dd8 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1112,9 +1112,11 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1112 if (NILP (force) && !other_visible_frames (XFRAME (frame))) 1112 if (NILP (force) && !other_visible_frames (XFRAME (frame)))
1113 error ("Attempt to make invisible the sole visible or iconified frame"); 1113 error ("Attempt to make invisible the sole visible or iconified frame");
1114 1114
1115#if 0 /* This isn't logically necessary, and it can do GC. */
1115 /* Don't let the frame remain selected. */ 1116 /* Don't let the frame remain selected. */
1116 if (XFRAME (frame) == selected_frame) 1117 if (XFRAME (frame) == selected_frame)
1117 Fhandle_switch_frame (next_frame (frame, Qt), Qnil); 1118 Fhandle_switch_frame (next_frame (frame, Qt), Qnil);
1119#endif
1118 1120
1119 /* Don't allow minibuf_window to remain on a deleted frame. */ 1121 /* Don't allow minibuf_window to remain on a deleted frame. */
1120 if (EQ (XFRAME (frame)->minibuffer_window, minibuf_window)) 1122 if (EQ (XFRAME (frame)->minibuffer_window, minibuf_window))
@@ -1148,9 +1150,11 @@ If omitted, FRAME defaults to the currently selected frame.")
1148 1150
1149 CHECK_LIVE_FRAME (frame, 0); 1151 CHECK_LIVE_FRAME (frame, 0);
1150 1152
1153#if 0 /* This isn't logically necessary, and it can do GC. */
1151 /* Don't let the frame remain selected. */ 1154 /* Don't let the frame remain selected. */
1152 if (XFRAME (frame) == selected_frame) 1155 if (XFRAME (frame) == selected_frame)
1153 Fhandle_switch_frame (next_frame (frame, Qt), Qnil); 1156 Fhandle_switch_frame (next_frame (frame, Qt), Qnil);
1157#endif
1154 1158
1155 /* Don't allow minibuf_window to remain on a deleted frame. */ 1159 /* Don't allow minibuf_window to remain on a deleted frame. */
1156 if (EQ (XFRAME (frame)->minibuffer_window, minibuf_window)) 1160 if (EQ (XFRAME (frame)->minibuffer_window, minibuf_window))