diff options
| author | Martin Rudalics | 2012-09-30 11:10:59 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-09-30 11:10:59 +0200 |
| commit | 5938d5196d09aff887aa74603c102b1f303a613a (patch) | |
| tree | 57c528aafa761114bf2528593a85642e6e3e5e21 /etc | |
| parent | a97dc380601446c00adfbd1d8e86e73e7d81a359 (diff) | |
| download | emacs-5938d5196d09aff887aa74603c102b1f303a613a.tar.gz emacs-5938d5196d09aff887aa74603c102b1f303a613a.zip | |
Handle window-height and window-width alist entries in `display-buffer'.
In buffer display functions handle window-height/window-width
alist entries. Suggested by Juri Linkov as fix for Bug#1806.
* window.el (window--display-buffer): New argument ALIST. Obey
window-height and window-width alist entries.
(window--try-to-split-window): New argument ALIST. Bind
window-combination-limit to t when the window's size shall be
changed and window-combination-limit equals `window-size'.
(display-buffer-in-atom-window)
(display-buffer-in-major-side-window)
(display-buffer-in-side-window, display-buffer-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-below-selected)
(display-buffer-at-bottom, display-buffer-in-previous-window)
(display-buffer-use-some-window): Adjust all callers of
window--display-buffer and window--try-to-split-window.
(fit-frame-to-buffer): New option.
(fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
is non-nil.
(display-buffer-in-major-side-window): Evaluate window-height /
window-width alist entries.
* help.el (temp-buffer-resize-frames)
(temp-buffer-resize-regexps): Remove options.
(temp-buffer-resize-mode): Adjust doc-string.
(resize-temp-buffer-window): Don't consult
temp-buffer-resize-regexps. Use fit-frame-to-buffer instead of
temp-buffer-resize-frames.
* dired.el (dired-mark-pop-up): Call
display-buffer-below-selected with a fit-window-to-buffer alist
entry.
* window.c (Vwindow_combination_limit): New default value.
(Qwindow_size): New symbol replacing Qtemp_buffer_resize.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -738,14 +738,11 @@ now accept a third argument to avoid choosing the selected window. | |||
| 738 | 738 | ||
| 739 | *** New macro `with-temp-buffer-window'. | 739 | *** New macro `with-temp-buffer-window'. |
| 740 | 740 | ||
| 741 | *** New options `temp-buffer-resize-frames' and | ||
| 742 | `temp-buffer-resize-regexps'. | ||
| 743 | |||
| 744 | *** `temp-buffer-resize-mode' no longer resizes windows that have been | 741 | *** `temp-buffer-resize-mode' no longer resizes windows that have been |
| 745 | reused. | 742 | reused. |
| 746 | 743 | ||
| 747 | *** New function `fit-frame-to-buffer' and new option | 744 | *** New function `fit-frame-to-buffer' and new options |
| 748 | `fit-frame-to-buffer-bottom-margin'. | 745 | `fit-frame-to-buffer' and `fit-frame-to-buffer-bottom-margin'. |
| 749 | 746 | ||
| 750 | *** New display action functions `display-buffer-below-selected', | 747 | *** New display action functions `display-buffer-below-selected', |
| 751 | `display-buffer-at-bottom' and `display-buffer-in-previous-window'. | 748 | `display-buffer-at-bottom' and `display-buffer-in-previous-window'. |
| @@ -760,6 +757,9 @@ non-nil, specifies frame parameters to give any newly-created frame. | |||
| 760 | *** New display action alist entry `previous-window', if non-nil, | 757 | *** New display action alist entry `previous-window', if non-nil, |
| 761 | specifies window to reuse in `display-buffer-in-previous-window'. | 758 | specifies window to reuse in `display-buffer-in-previous-window'. |
| 762 | 759 | ||
| 760 | *** New display action alist entries `window-height' and `window-width' | ||
| 761 | to specify size of new window created by `display-buffer'. | ||
| 762 | |||
| 763 | *** The following variables are obsolete, as they can be replaced by | 763 | *** The following variables are obsolete, as they can be replaced by |
| 764 | appropriate entries in the `display-buffer-alist' function introduced | 764 | appropriate entries in the `display-buffer-alist' function introduced |
| 765 | in Emacs 24.1: | 765 | in Emacs 24.1: |