all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 'martin rudalics' <rudalics@gmx.at>, 'Emacs Devel' <emacs-devel@gnu.org>
Subject: RE: lru-window, window--try-to-split-window, split-width-threshold
Date: Wed, 27 Aug 2008 14:51:05 -0700	[thread overview]
Message-ID: <000f01c9088f$01c541e0$c2b22382@us.oracle.com> (raw)
In-Reply-To: <jwvy72i88qg.fsf-monnier+emacs@gnu.org>

> >> 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	other threads:[~2008-08-27 21:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 16:04 lru-window, window--try-to-split-window, split-width-threshold Drew Adams
2008-08-22 17:02 ` martin rudalics
2008-08-22 23:45   ` Drew Adams
2008-08-27 21:14     ` Stefan Monnier
2008-08-27 21:51       ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000f01c9088f$01c541e0$c2b22382@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.