GNU bug report logs - #32825
27.0.50; Deterministic window management

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Mon, 24 Sep 2018 19:15:02 UTC

Severity: minor

Tags: moreinfo

Found in version 27.0.50

Fixed in version 29.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: Michael Heerdegen <michael_heerdegen <at> web.de>, 32825 <at> debbugs.gnu.org
Subject: bug#32825: 27.0.50; Deterministic window management
Date: Wed, 05 Dec 2018 10:15:55 +0100
[Message part 1 (text/plain, inline)]
>> Would that suffice?  If so, would we use the same for
>> 'display-buffer-pop-up-window' and 'display-buffer-at-bottom'?
>
> I don't know about display-buffer-pop-up-window, but for
> display-buffer-at-bottom where the height depends on the
> number of lines in the displayed buffer like e.g. *Completions*
> this is not needed.

Note that 'display-buffer-at-bottom' is agnostic of the number of
lines in the displayed buffer.

We eventually need a generally applicable rule because the user might
want to add such an entry to 'display-buffer-alist'.  And we might
want a corresponding width entry for symmetry.  For the moment, we can
say that the entry is handled by 'display-buffer-below-selected' only.
In the attached two functions I renamed it to 'window-min-height' to
make it more consistent with 'window-height'.  Please have a look.

> I think the semantics of 'min-height' should be a minimal height
> of the displayed window wherever it can be displayed.

To amend the remaining buffer display action functions, a substantial
number of changes will have to be made.  'window-splittable-p', for
example, would need an additional MIN-SIZE argument.  And what about
'display-buffer-same-window' or 'display-buffer-in-previous-window'?

martin
[window--ensure-min-size.el (application/emacs-lisp, attachment)]

This bug report was last modified 3 years and 24 days ago.

Previous Next


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