GNU bug report logs - #39822
27.0.90; Cannot set *Completions* buffer height using display-buffer-alist

Previous Next

Package: emacs;

Reported by: Davor Rotim <drot <at> firemail.cc>

Date: Fri, 28 Feb 2020 14:06:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.90

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>
Cc: Davor Rotim <drot <at> firemail.cc>, 39822 <at> debbugs.gnu.org
Subject: bug#39822: 27.0.90; Cannot set *Completions* buffer height using display-buffer-alist
Date: Wed, 4 Mar 2020 18:30:32 +0100
> Here is a complete list of commands that use
> with-displayed-buffer-window:
>
> - dired-mark-pop-up
> - minibuffer-completion-help
> - save-buffers-kill-emacs
>
> What they all have in common is that they have some post-processing
> in the displayed buffer.  I wonder why there are no more such commands
> that need to do such post-processing?  Maybe they use some simpler
> solution that could be used here as well?
>
> For example, hack-local-variables-confirm uses just
>
>    (pop-to-buffer "*Local Variables*" '(display-buffer--maybe-at-bottom))

IIUC it neither runs the hooks for temporary buffers nor does it obey
'temp-buffer-resize-mode'.

> and nothing more, without hassles of with-displayed-buffer-window.
> And still it fits the window nicely into the buffer height.

How comes?

> Why the above 3 commands couldn't do the same by abandoning
> with-displayed-buffer-window?

It depends on how much of the stuff in 'temp-buffer-window-setup' and
'temp-buffer-window-show' they really need.

martin




This bug report was last modified 5 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.