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: Drew Adams
Subject: RE: lru-window, window--try-to-split-window, split-width-threshold
Date: Wed, 27 Aug 2008 14:51:05 -0700

> >> 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).

Right. I already looked into that. It was not helpful in my particular case, but
I agree with you in general. Thanks.





reply via email to

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