]> git.eshelyaron.com Git - emacs.git/commit
Improve 'display-buffer' 'temp-buffer-resize-mode' cohabitation (Bug#51062)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 13 Oct 2021 07:51:27 +0000 (09:51 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 13 Oct 2021 07:51:27 +0000 (09:51 +0200)
commit2223c519a5b6c8f437ec4ece9028c9555cc98ea9
treeac5f27ab220beec20af73dbc090bc4c2b249b60a
parentdec613d1e727b94fc3b672134d3a75063bd6b618
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.
doc/lispref/display.texi
doc/lispref/windows.texi
lisp/help.el
lisp/window.el