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


Message #188 received at 32825 <at> debbugs.gnu.org (full text, mbox):

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: Re: bug#32825: 27.0.50; Deterministic window management
Date: Wed, 07 Nov 2018 10:23:06 +0100
> Isn't this bad that this function does the double work, i.e.
> first displays the buffer, then reverts, and if everything is right,
> displays the same buffer again.  Shouldn't it display the buffer
> only once, then check if everything is right, and revert only
> if not.

The primal problem this was supposed to solve is:

(1) Get the size (typically the body width) of the window supposed to
    display a buffer (typically a doc or man buffer).

(2) Format the buffer in some way so that it fits into (1)'s size.

(3) Call 'display-buffer' to actually display the buffer.

In such a scenario the time to perform (2) usually dwarfs the time
needed by (1) so it shouldn't be that bad.

We obviously could use this approach to revert 'display-buffer'
whenever it did something bad.  But we shouldn't do that by default,
the overhead for storing the configurations is not negligible.

martin




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.