diff options
| author | Richard M. Stallman | 1995-04-08 20:15:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-08 20:15:04 +0000 |
| commit | 1f4c5d09eeec417f6f61515af323c7baa68a3a4a (patch) | |
| tree | f0773ad570e735277f9c3cac2b9334e2a7430934 /src/window.c | |
| parent | ab0fbbe9d6ee88e187de9aafb5e60740c25d03cb (diff) | |
| download | emacs-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.c | 10 |
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\ | |||
| 888 | ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ | 888 | ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ |
| 889 | above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ | 889 | above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ |
| 890 | ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ | 890 | ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ |
| 891 | If ALL-FRAMES is a frame, restrict search to windows on that frame.\n\ | ||
| 891 | Anything else means restrict to WINDOW's frame.\n\ | 892 | Anything else means restrict to WINDOW's frame.\n\ |
| 892 | \n\ | 893 | \n\ |
| 893 | If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\ | 894 | If 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\ | |||
| 1021 | ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ | 1026 | ALL-FRAMES nil or omitted means cycle within the frames as specified\n\ |
| 1022 | above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ | 1027 | above. ALL-FRAMES = `visible' means include windows on all visible frames.\n\ |
| 1023 | ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ | 1028 | ALL-FRAMES = 0 means include windows on all visible and iconified frames.\n\ |
| 1029 | If ALL-FRAMES is a frame, restrict search to windows on that frame.\n\ | ||
| 1024 | Anything else means restrict to WINDOW's frame.\n\ | 1030 | Anything else means restrict to WINDOW's frame.\n\ |
| 1025 | \n\ | 1031 | \n\ |
| 1026 | If you use consistent values for MINIBUF and ALL-FRAMES, you can use\n\ | 1032 | If 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, |