diff options
author | Martin Rudalics <rudalics@gmx.at> | 2021-10-13 09:51:27 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2021-10-13 09:51:27 +0200 |
commit | 2223c519a5b6c8f437ec4ece9028c9555cc98ea9 (patch) | |
tree | ac5f27ab220beec20af73dbc090bc4c2b249b60a /test/lisp/emacs-lisp/bytecomp-resources | |
parent | dec613d1e727b94fc3b672134d3a75063bd6b618 (diff) | |
download | emacs-2223c519a5b6c8f437ec4ece9028c9555cc98ea9.tar.gz emacs-2223c519a5b6c8f437ec4ece9028c9555cc98ea9.tar.bz2 emacs-2223c519a5b6c8f437ec4ece9028c9555cc98ea9.zip |
Improve 'display-buffer' 'temp-buffer-resize-mode' cohabitation (Bug#51062)
* doc/lispref/display.texi (Temporary Displays): Explain how
to override the effect of 'temp-buffer-resize-mode' with a
suitable 'display-buffer' action alist entry.
* doc/lispref/windows.texi (Buffer Display Action Alists):
Mention that an 'inhibit-switch-frame' entry might not work
with every WM. Describe the 'window-size' entry. Describe
how automatic window resizing can be overridden.
* lisp/help.el (resize-temp-buffer-window-inhibit): New variable.
(resize-temp-buffer-window): Handle case where user overrides
automatic resizing.
* lisp/window.el (temp-buffer-window-show): Bind
'resize-temp-buffer-window-inhibit' to nil around
'display-buffer'. Do not raise frame automatically to avoid
defeating 'inhibit-switch-frame'.
(window--display-buffer): Set 'resize-temp-buffer-window-inhibit'
to t when the action alist contains a 'window-height',
'window-width' or 'window-size' entry. Use
'modify-frame-parameters' instead of 'set-frame-height' and
'set-frame-width' to avoid that the latter step on each others
toes.
(display-buffer): Fix 'inhibit-switch-frame' part in and add
'window-size' part to doc-string.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources')
0 files changed, 0 insertions, 0 deletions