diff options
| author | Martin Rudalics | 2015-07-22 12:20:13 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2015-07-22 12:20:13 +0200 |
| commit | 59526c325e7c857776bcfe7560d533391bf045b4 (patch) | |
| tree | 99861d6ff9e2d199fa747840b1a14e3a82d06bf7 /doc | |
| parent | fed091f7c2513631d8c0570f444be9486d7563d1 (diff) | |
| download | emacs-59526c325e7c857776bcfe7560d533391bf045b4.tar.gz emacs-59526c325e7c857776bcfe7560d533391bf045b4.zip | |
2015-07-22 Martin Rudalics <rudalics@gmx.at>
Optionally even widths of `display-buffer' windows. (Bug#21100)
* lisp/window.el (quit-restore-window): Restore width if
requested.
(display-buffer-record-window): Record width when window is
reused and horizontally combined.
(even-window-sizes): New option to allow evening window widths.
(even-window-heights): Defalias to `even-window-sizes'.
(window--even-window-heights): Rename to
`window--even-window-sizes'. Handle side-by-side windows.
(display-buffer-use-some-window): Call `window--even-window-sizes'
instead of `window--even-window-heights'.
* lisp/help.el (resize-temp-buffer-window): Fix indentation.
* doc/lispref/windows.texi (Choosing Window Options): Describe
`even-window-sizes'.
(Coordinates and Windows): Fix typo.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/windows.texi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index b2bc6378008..750397c7375 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -2547,6 +2547,21 @@ least that many columns. If the value is @code{nil}, that means not | |||
| 2547 | to split this way. | 2547 | to split this way. |
| 2548 | @end defopt | 2548 | @end defopt |
| 2549 | 2549 | ||
| 2550 | @defopt even-window-sizes | ||
| 2551 | This variable, if non-nil, causes @code{display-buffer} to even window | ||
| 2552 | sizes whenever it reuses an existing window and that window is adjacent | ||
| 2553 | to the selected one. | ||
| 2554 | |||
| 2555 | If its value is @code{width-only}, sizes are evened only if the reused | ||
| 2556 | window is on the left or right of the selected one and the selected | ||
| 2557 | window is wider than the reused one. If its value is @code{height-only} | ||
| 2558 | sizes are evened only if the reused window is above or beneath the | ||
| 2559 | selected window and the selected window is higher than the reused one. | ||
| 2560 | Any other non-@code{nil} value means to even sizes in any of these cases | ||
| 2561 | provided the selected window is larger than the reused one in the sense | ||
| 2562 | of their combination. | ||
| 2563 | @end defopt | ||
| 2564 | |||
| 2550 | @defopt pop-up-frames | 2565 | @defopt pop-up-frames |
| 2551 | If the value of this variable is non-@code{nil}, that means | 2566 | If the value of this variable is non-@code{nil}, that means |
| 2552 | @code{display-buffer} may display buffers by making new frames. The | 2567 | @code{display-buffer} may display buffers by making new frames. The |
| @@ -3690,7 +3705,7 @@ The coordinates are in the header line of @var{window}. | |||
| 3690 | The coordinates are in the divider separating @var{window} from a | 3705 | The coordinates are in the divider separating @var{window} from a |
| 3691 | window on the right. | 3706 | window on the right. |
| 3692 | 3707 | ||
| 3693 | @item right-divider | 3708 | @item bottom-divider |
| 3694 | The coordinates are in the divider separating @var{window} from a | 3709 | The coordinates are in the divider separating @var{window} from a |
| 3695 | window beneath. | 3710 | window beneath. |
| 3696 | 3711 | ||