aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-03-25 15:12:42 +0200
committerEli Zaretskii2024-03-25 15:12:42 +0200
commit9d3d77f12dac21c633cf10f111b0e4e574036b30 (patch)
treea929a69edd35938e4cf51ee4f707fa0484d982f2 /src
parent96fb71994246508f9bcaae95395d44042941f02d (diff)
downloademacs-9d3d77f12dac21c633cf10f111b0e4e574036b30.tar.gz
emacs-9d3d77f12dac21c633cf10f111b0e4e574036b30.zip
Fix documentation of 'other-window-for-scrolling'
* src/window.c (Fother_window_for_scrolling): More accurate documentation of how "the other" window is looked for. Suggested by Karthik Chikmagalur <karthikchikmagalur@gmail.com>.
Diffstat (limited to 'src')
-rw-r--r--src/window.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index 8d4bde8d6db..3a8f864ec69 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6452,13 +6452,16 @@ When calling from a program, supply as argument a number, nil, or `-'. */)
6452} 6452}
6453 6453
6454DEFUN ("other-window-for-scrolling", Fother_window_for_scrolling, Sother_window_for_scrolling, 0, 0, 0, 6454DEFUN ("other-window-for-scrolling", Fother_window_for_scrolling, Sother_window_for_scrolling, 0, 0, 0,
6455 doc: /* Return the other window for \"other window scroll\" commands. 6455 doc: /* Return \"the other\" window for \"other window scroll\" commands.
6456If in the minibuffer, `minibuffer-scroll-window' if non-nil 6456If in the minibuffer, and `minibuffer-scroll-window' is non-nil,
6457specifies the window. 6457it specifies the window to use.
6458Otherwise, if `other-window-scroll-buffer' is non-nil, a window 6458Otherwise, if `other-window-scroll-buffer' is a buffer, a window
6459showing that buffer is used, popping the buffer up if necessary. 6459showing that buffer is the window to use, popping it up if necessary.
6460Finally, look for a neighboring window on the selected frame, 6460Otherwise, if `other-window-scroll-default' is a function, call it,
6461followed by all visible frames on the current terminal. */) 6461and the window it returns is the window to use.
6462Finally, the function looks for a neighboring window on the selected
6463frame, followed by windows on all the visible frames on the current
6464terminal. */)
6462 (void) 6465 (void)
6463{ 6466{
6464 Lisp_Object window; 6467 Lisp_Object window;