all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: Lennart Borgman <lennart.borgman@gmail.com>,
	Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Does display-buffer display the buffer or not?
Date: Fri, 24 Dec 2010 12:13:24 +0100	[thread overview]
Message-ID: <4D148054.9030704@gmx.at> (raw)
In-Reply-To: <8739pnbhce.fsf@member.fsf.org>

 > Hm, is it sensible to have multiple frames on one tty?  You can only see
 > one at a time anyway...

That's what graphic-only for `pop-up-frames' is used for.  But this
option is ignored in the fallback case (unless `pop-up-frame-function'
wants to check it).

 >> It's just a fallback method and I'm not sure whether it's worth
 >> mentioning in the doc-string.
 >
 > Yes, IMO, it is.  And the "nil if no such window is found" should be
 > removed.  The fallback ensures that a window will always be found,
 > right?

As I explained elsewhere you can make `pop-up-frame-function' do
something silly, so the frame is not created in the worst case.  Hence,
I would have to say that `pop-up-frame-function' has to behave
reasonably in that case.  And I would have to enlist the windows
`display-buffer' tries to reuse before trying to pop up a new frame and
maybe some other things I never tried to understand.

 > With the current spelling, I read the docs like "the function caller
 > should check that the return-value of display-buffer is nil, and if it
 > is, act appropriately by creating a new frame, for example."

That's a correct conclusion, indeed.  The "creating a new frame" part
would then have to sidestep `pop-up-frame-function', obviously.

martin



  reply	other threads:[~2010-12-24 11:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24  5:01 Does display-buffer display the buffer or not? Lennart Borgman
2010-12-24  8:15 ` Tassilo Horn
2010-12-24  9:31   ` martin rudalics
2010-12-24 10:22     ` Tassilo Horn
2010-12-24 11:13       ` martin rudalics [this message]
2010-12-24 11:26         ` Lennart Borgman
2010-12-24 11:49           ` martin rudalics
2010-12-24 12:06             ` Lennart Borgman
2010-12-24 14:41               ` martin rudalics
2010-12-24 15:43                 ` Lennart Borgman
2010-12-24 17:57                   ` martin rudalics
2010-12-24 11:44       ` Eli Zaretskii
2010-12-24 14:50         ` Tassilo Horn
2010-12-24 15:04           ` martin rudalics
2010-12-24 16:14             ` Eli Zaretskii
2010-12-24  9:31 ` martin rudalics
2010-12-24  9:58   ` Lennart Borgman
2010-12-24 10:27     ` martin rudalics

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=4D148054.9030704@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=tassilo@member.fsf.org \
    /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.