[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17809: 24.4.50; Completions display

From: martin rudalics
Subject: bug#17809: 24.4.50; Completions display
Date: Sat, 28 Jun 2014 10:17:40 +0200

>> (1) Get the buffer ready in BODY.
>> (2) Display it in `internal-temp-output-buffer-show'.
>> (3) Fill it in `temp-buffer-show-hook'.
> This is possible, but then (window-height . fit-window-to-buffer)
> is called on an empty buffer.

Then the function called in (3) should do `fit-window-to-buffer' when
it's done with filling.

> I found a way to achieve a good result by calling
> `with-output-to-temp-buffer' twice: first with
> empty body that displays the buffer, and the second call
> finds the displayed window, fills it, and calls
> (window-height . fit-window-to-buffer) at the end:

This sounds abusive.  And note that `display-buffer-base-action' is
a user variable.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]