aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-09 05:59:08 +0000
committerRichard M. Stallman1994-03-09 05:59:08 +0000
commitd29a5631671bee9a2dbffa320ad4cf90eb697567 (patch)
treeea7ab9a700bc084a7e63c3b973e547ba2d23cab0 /src/window.c
parent671cfd1aa3792fa1aff4b488097924eeb88e15e4 (diff)
downloademacs-d29a5631671bee9a2dbffa320ad4cf90eb697567.tar.gz
emacs-d29a5631671bee9a2dbffa320ad4cf90eb697567.zip
(window_loop): Delete MULTI_FRAME
conditional within the loop, spuriously added in prev change. Don't ignore invisible or iconified frames for GET_BUFFER_WINDOW; instead, let Fnext_window skip them if appropriate.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/window.c b/src/window.c
index 6b6296a807c..479512b1b4d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1180,20 +1180,14 @@ window_loop (type, obj, mini, frames)
1180 the current window. */ 1180 the current window. */
1181 next_window = Fnext_window (w, mini ? Qt : Qnil, frame_arg); 1181 next_window = Fnext_window (w, mini ? Qt : Qnil, frame_arg);
1182 1182
1183#ifdef MULTI_FRAME 1183 /* Note that we do not pay attention here to whether
1184 if (frame != 0 && EQ (frames, Qt) 1184 the frame is visible, since Fnext_window skips non-visible frames
1185 && FRAME_VISIBLE_P (w_frame)) 1185 if that is desired, under the control of frame_arg. */
1186 continue;
1187#endif
1188 if (! MINI_WINDOW_P (XWINDOW (w)) 1186 if (! MINI_WINDOW_P (XWINDOW (w))
1189 || (mini && minibuf_level > 0)) 1187 || (mini && minibuf_level > 0))
1190 switch (type) 1188 switch (type)
1191 { 1189 {
1192 case GET_BUFFER_WINDOW: 1190 case GET_BUFFER_WINDOW:
1193 /* Ignore invisible and iconified frames. */
1194 if (! FRAME_VISIBLE_P (w_frame)
1195 || FRAME_ICONIFIED_P (w_frame))
1196 break;
1197 if (XBUFFER (XWINDOW (w)->buffer) == XBUFFER (obj)) 1191 if (XBUFFER (XWINDOW (w)->buffer) == XBUFFER (obj))
1198 return w; 1192 return w;
1199 break; 1193 break;
@@ -1203,12 +1197,6 @@ window_loop (type, obj, mini, frames)
1203 if (!NILP (obj) && XFASTINT (XWINDOW (w)->width) 1197 if (!NILP (obj) && XFASTINT (XWINDOW (w)->width)
1204 != FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (w))))) 1198 != FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (w)))))
1205 break; 1199 break;
1206#if 0
1207 /* Ignore invisible and iconified frames. */
1208 if (! FRAME_VISIBLE_P (XFRAME (WINDOW_FRAME (XWINDOW (w))))
1209 || FRAME_ICONIFIED_P (XFRAME (WINDOW_FRAME (XWINDOW (w)))))
1210 break;
1211#endif
1212 /* Ignore dedicated windows and minibuffers. */ 1200 /* Ignore dedicated windows and minibuffers. */
1213 if (MINI_WINDOW_P (XWINDOW (w)) 1201 if (MINI_WINDOW_P (XWINDOW (w))
1214 || !NILP (XWINDOW (w)->dedicated)) 1202 || !NILP (XWINDOW (w)->dedicated))
@@ -1245,12 +1233,6 @@ window_loop (type, obj, mini, frames)
1245 break; 1233 break;
1246 1234
1247 case GET_LARGEST_WINDOW: 1235 case GET_LARGEST_WINDOW:
1248#if 0
1249 /* Ignore invisible and iconified frames. */
1250 if (! FRAME_VISIBLE_P (XFRAME (WINDOW_FRAME (XWINDOW (w))))
1251 || FRAME_ICONIFIED_P (XFRAME (WINDOW_FRAME (XWINDOW (w)))))
1252 break;
1253#endif
1254 /* Ignore dedicated windows and minibuffers. */ 1236 /* Ignore dedicated windows and minibuffers. */
1255 if (MINI_WINDOW_P (XWINDOW (w)) 1237 if (MINI_WINDOW_P (XWINDOW (w))
1256 || !NILP (XWINDOW (w)->dedicated)) 1238 || !NILP (XWINDOW (w)->dedicated))