Fix documentation of 'balance-windows'
* lisp/window.el (balance-windows): Doc fix. * doc/emacs/windows.texi (Change Window): Make the description of 'balance-windows' more accurate. (Bug#71915)
This commit is contained in:
parent
c986387c79
commit
de3fa00a61
2 changed files with 13 additions and 8 deletions
|
@ -300,7 +300,8 @@ Make selected window narrower (@code{shrink-window-horizontally}).
|
||||||
Shrink this window if its buffer doesn't need so many lines
|
Shrink this window if its buffer doesn't need so many lines
|
||||||
(@code{shrink-window-if-larger-than-buffer}).
|
(@code{shrink-window-if-larger-than-buffer}).
|
||||||
@item C-x +
|
@item C-x +
|
||||||
Make all windows the same height (@code{balance-windows}).
|
Balance the sizes of all the windows of the selected frame
|
||||||
|
(@code{balance-windows}).
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@kindex C-x 0
|
@kindex C-x 0
|
||||||
|
@ -373,8 +374,11 @@ lines to other windows in the frame.
|
||||||
|
|
||||||
@kindex C-x +
|
@kindex C-x +
|
||||||
@findex balance-windows
|
@findex balance-windows
|
||||||
You can also use @kbd{C-x +} (@code{balance-windows}) to even out the
|
You can also use @kbd{C-x +} (@code{balance-windows}) to balance the
|
||||||
heights of all the windows in the selected frame.
|
sizes of all the windows of the selected frame (with the exception of
|
||||||
|
the minibuffer window, @pxref{Minibuffer}). This command makes each
|
||||||
|
horizontal pair of adjacent windows the same height, and each vertical
|
||||||
|
pair of adjacent windows the same width.
|
||||||
|
|
||||||
@node Displaying Buffers
|
@node Displaying Buffers
|
||||||
@section Displaying a Buffer in a Window
|
@section Displaying a Buffer in a Window
|
||||||
|
|
|
@ -5888,12 +5888,13 @@ is non-nil)."
|
||||||
(setq sub (window-right sub))))))))
|
(setq sub (window-right sub))))))))
|
||||||
|
|
||||||
(defun balance-windows (&optional window-or-frame)
|
(defun balance-windows (&optional window-or-frame)
|
||||||
"Balance the sizes of windows of WINDOW-OR-FRAME.
|
"Balance the sizes of windows shown on the selected frame.
|
||||||
WINDOW-OR-FRAME is optional and defaults to the selected frame.
|
When called from Lisp, WINDOW-OR-FRAME is optional and defaults to the
|
||||||
|
selected frame.
|
||||||
If WINDOW-OR-FRAME denotes a frame, balance the sizes of all
|
If WINDOW-OR-FRAME denotes a frame, balance the sizes of all
|
||||||
windows of that frame. If WINDOW-OR-FRAME denotes a window,
|
windows of that frame's root window (which excludes the mini-window).
|
||||||
recursively balance the sizes of all child windows of that
|
If WINDOW-OR-FRAME denotes a window, recursively balance the sizes
|
||||||
window."
|
of all child windows of that window."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((window
|
(let* ((window
|
||||||
(cond
|
(cond
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue