emacs-devel
[Top][All Lists]
Advanced

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

Re: lru-window, window--try-to-split-window, split-width-threshold


From: Stefan Monnier
Subject: Re: lru-window, window--try-to-split-window, split-width-threshold
Date: Wed, 27 Aug 2008 17:14:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> So you can't fill the buffer _after_ the splitting occurred?  
>> Relying on someone else to always choose the LRU window is
>> not very clean in the first place.

> Right you are.
> I use code similar to that used in Emacs. The formatting is done inside
> `with-output-to-temp-buffer', which displays the buffer only at the end.

This is a more general problem, where you often want to know the width
of the window that will be used to display a buffer before filling the
buffer but you also sometimes need to know the content of the buffer in
order to choose the best size for the window that will display it.

In your case you may be able to adjust the buffer's content from
temp-buffer-show-hook (which is run after the buffer was displayed).


        Stefan




reply via email to

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