aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-08 20:15:04 +0000
committerRichard M. Stallman1995-04-08 20:15:04 +0000
commit1f4c5d09eeec417f6f61515af323c7baa68a3a4a (patch)
treef0773ad570e735277f9c3cac2b9334e2a7430934 /src/window.c
parentab0fbbe9d6ee88e187de9aafb5e60740c25d03cb (diff)
downloademacs-1f4c5d09eeec417f6f61515af323c7baa68a3a4a.tar.gz
emacs-1f4c5d09eeec417f6f61515af323c7baa68a3a4a.zip
(Fnext_window, Fprevious_window): If all_frames is a frame and window
is not on that frame, return the first window on that frame.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 4401261012b..56281f02027 100644
--- a/src/window.c
+++ b/src/window.c
@@ -888,6 +888,7 @@ Optional third arg ALL-FRAMES t means include windows on all frames.\n\
888ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ 888ALL-FRAMES nil or omitted means cycle within the frames as specified\n\
889above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ 889above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\
890ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ 890ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\
891If ALL-FRAMES is a frame, restrict search to windows on that frame.\n\
891Anything else means restrict to WINDOW's frame.\n\ 892Anything else means restrict to WINDOW's frame.\n\
892\n\ 893\n\
893If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\ 894If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\
@@ -929,6 +930,10 @@ DEFUN ("next-window", Fnext_window, Snext_window, 0, 3, 0,
929 ; 930 ;
930 else if (XFASTINT (all_frames) == 0) 931 else if (XFASTINT (all_frames) == 0)
931 ; 932 ;
933 else if (FRAMEP (all_frames) && ! EQ (all_frames, Fwindow_frame (window)))
934 /* If all_frames is a frame and window arg isn't on that frame, just
935 return the first window on the frame. */
936 return Fframe_first_window (all_frames);
932 else if (! EQ (all_frames, Qt)) 937 else if (! EQ (all_frames, Qt))
933 all_frames = Qnil; 938 all_frames = Qnil;
934 /* Now all_frames is t meaning search all frames, 939 /* Now all_frames is t meaning search all frames,
@@ -1021,6 +1026,7 @@ Optional third arg ALL-FRAMES t means include windows on all frames.\n\
1021ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ 1026ALL-FRAMES nil or omitted means cycle within the frames as specified\n\
1022above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ 1027above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\
1023ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ 1028ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\
1029If ALL-FRAMES is a frame, restrict search to windows on that frame.\n\
1024Anything else means restrict to WINDOW's frame.\n\ 1030Anything else means restrict to WINDOW's frame.\n\
1025\n\ 1031\n\
1026If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\ 1032If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\
@@ -1064,6 +1070,10 @@ DEFUN ("previous-window", Fprevious_window, Sprevious_window, 0, 3, 0,
1064 ; 1070 ;
1065 else if (XFASTINT (all_frames) == 0) 1071 else if (XFASTINT (all_frames) == 0)
1066 ; 1072 ;
1073 else if (FRAMEP (all_frames) && ! EQ (all_frames, Fwindow_frame (window)))
1074 /* If all_frames is a frame and window arg isn't on that frame, just
1075 return the first window on the frame. */
1076 return Fframe_first_window (all_frames);
1067 else if (! EQ (all_frames, Qt)) 1077 else if (! EQ (all_frames, Qt))
1068 all_frames = Qnil; 1078 all_frames = Qnil;
1069 /* Now all_frames is t meaning search all frames, 1079 /* Now all_frames is t meaning search all frames,