GNU bug report logs - #17809
24.4.50; Completions display

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Thu, 19 Jun 2014 07:12:03 UTC

Severity: wishlist

Tags: patch

Merged with 12618

Found in version 24.2.50

Fixed in version 24.4.50

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> jurta.org>
Cc: 17809 <at> debbugs.gnu.org
Subject: Re: 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.

martin




This bug report was last modified 10 years and 229 days ago.

Previous Next


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