aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-10 20:08:25 +0000
committerRichard M. Stallman1993-06-10 20:08:25 +0000
commit644b477c86626df774d857de4fab567fec81bb95 (patch)
tree058e5e8efa2905f7cf5f8460a75934088ce37ff9 /src/window.c
parent442c9ab62723c834867a2402e2c84af9bb2003dc (diff)
downloademacs-644b477c86626df774d857de4fab567fec81bb95.tar.gz
emacs-644b477c86626df774d857de4fab567fec81bb95.zip
(Fscroll_left): Make argument optional.
(Fscroll_right): Ditto. (Fprevious_window): When changing frames, use the new frame's minibuffer if any.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index b596cf732cc..c9391a7503e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -840,6 +840,9 @@ windows, eventually ending up back at the window you started with.\n\
840 : Qnil); 840 : Qnil);
841 else if (! EQ (all_frames, Qt)) 841 else if (! EQ (all_frames, Qt))
842 all_frames = Qnil; 842 all_frames = Qnil;
843 /* Now all_frames is t meaning search all frames,
844 nil meaning search just current frame,
845 or a window, meaning search the frame that window belongs to. */
843 846
844 /* Do this loop at least once, to get the next window, and perhaps 847 /* Do this loop at least once, to get the next window, and perhaps
845 again, if we hit the minibuffer and that is not acceptable. */ 848 again, if we hit the minibuffer and that is not acceptable. */
@@ -942,6 +945,9 @@ windows, eventually ending up back at the window you started with.\n\
942 : Qnil); 945 : Qnil);
943 else if (! EQ (all_frames, Qt)) 946 else if (! EQ (all_frames, Qt))
944 all_frames = Qnil; 947 all_frames = Qnil;
948 /* Now all_frames is t meaning search all frames,
949 nil meaning search just current frame,
950 or a window, meaning search the frame that window belongs to. */
945 951
946 /* Do this loop at least once, to get the previous window, and perhaps 952 /* Do this loop at least once, to get the previous window, and perhaps
947 again, if we hit the minibuffer and that is not acceptable. */ 953 again, if we hit the minibuffer and that is not acceptable. */
@@ -970,7 +976,11 @@ windows, eventually ending up back at the window you started with.\n\
970 met. */ 976 met. */
971 tem = prev_frame (tem, all_frames); 977 tem = prev_frame (tem, all_frames);
972#endif 978#endif
973 tem = FRAME_ROOT_WINDOW (XFRAME (tem)); 979 /* If this frame has a minibuffer, find that window first,
980 because it is conceptually the last window in that frame. */
981 tem = FRAME_MINIBUFFER_WINDOW (XFRAME (tem));
982 if (NILP (tem))
983 tem = FRAME_ROOT_WINDOW (XFRAME (tem));
974 984
975 break; 985 break;
976 } 986 }
@@ -2266,7 +2276,7 @@ showing that buffer, popping the buffer up if necessary.")
2266 return Qnil; 2276 return Qnil;
2267} 2277}
2268 2278
2269DEFUN ("scroll-left", Fscroll_left, Sscroll_left, 1, 1, "P", 2279DEFUN ("scroll-left", Fscroll_left, Sscroll_left, 0, 1, "P",
2270 "Scroll selected window display ARG columns left.\n\ 2280 "Scroll selected window display ARG columns left.\n\
2271Default for ARG is window width minus 2.") 2281Default for ARG is window width minus 2.")
2272 (arg) 2282 (arg)
@@ -2284,7 +2294,7 @@ Default for ARG is window width minus 2.")
2284 + XINT (arg))); 2294 + XINT (arg)));
2285} 2295}
2286 2296
2287DEFUN ("scroll-right", Fscroll_right, Sscroll_right, 1, 1, "P", 2297DEFUN ("scroll-right", Fscroll_right, Sscroll_right, 0, 1, "P",
2288 "Scroll selected window display ARG columns right.\n\ 2298 "Scroll selected window display ARG columns right.\n\
2289Default for ARG is window width minus 2.") 2299Default for ARG is window width minus 2.")
2290 (arg) 2300 (arg)