1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; Fix documentation of 'other-window'

* doc/lispref/windows.texi (Cyclic Window Ordering):
* lisp/window.el (other-window): Document ALL-FRAMES in interactive
invocations.
This commit is contained in:
Eli Zaretskii 2025-07-26 11:36:16 +03:00
parent 5f3cbd62b1
commit e4908623f2
2 changed files with 5 additions and 2 deletions

View file

@ -2088,7 +2088,9 @@ argument.
The optional argument @var{all-frames} has the same meaning as in
@code{next-window}, like a @code{nil} @var{minibuf} argument to
@code{next-window}.
@code{next-window}. When called interactively, @var{all-frames} is
always @code{nil}, so only windows on the selected frame can be
selected.
This function does not select a window that has a non-@code{nil}
@code{no-other-window} window parameter (@pxref{Window Parameters}),

View file

@ -3973,7 +3973,8 @@ window parameter is non-nil.
This function uses `next-window' for finding the window to
select. The argument ALL-FRAMES has the same meaning as in
`next-window', but the MINIBUF argument of `next-window' is
always effectively nil."
always effectively nil. Interactively, ALL-FRAMES is always
nil, which considers all windows on the selected frame."
(interactive "p\ni\np")
(let* ((window (selected-window))
(original-window window)