From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Does display-buffer display the buffer or not? Date: Fri, 24 Dec 2010 12:13:24 +0100 Message-ID: <4D148054.9030704@gmx.at> References: <87r5d7bn8s.fsf@member.fsf.org> <4D14688E.4090606@gmx.at> <8739pnbhce.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1293189234 17923 80.91.229.12 (24 Dec 2010 11:13:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Dec 2010 11:13:54 +0000 (UTC) Cc: Lennart Borgman , Emacs-Devel devel To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 24 12:13:50 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PW5am-0004AV-5v for ged-emacs-devel@m.gmane.org; Fri, 24 Dec 2010 12:13:48 +0100 Original-Received: from localhost ([127.0.0.1]:57981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PW5al-0005K6-Jn for ged-emacs-devel@m.gmane.org; Fri, 24 Dec 2010 06:13:47 -0500 Original-Received: from [140.186.70.92] (port=50602 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PW5aS-0005D3-3M for emacs-devel@gnu.org; Fri, 24 Dec 2010 06:13:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PW5aQ-0006EF-T7 for emacs-devel@gnu.org; Fri, 24 Dec 2010 06:13:28 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:44201 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PW5aQ-0006Ds-F4 for emacs-devel@gnu.org; Fri, 24 Dec 2010 06:13:26 -0500 Original-Received: (qmail invoked by alias); 24 Dec 2010 11:13:24 -0000 Original-Received: from 62-47-60-95.adsl.highway.telekom.at (EHLO [62.47.60.95]) [62.47.60.95] by mail.gmx.net (mp035) with SMTP; 24 Dec 2010 12:13:24 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Efc5cQ5PE3Y4FVQyrVqK4RJDvC8yQJkL6ZaCUdm VvI9VZe+gDDV/O User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <8739pnbhce.fsf@member.fsf.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133940 Archived-At: > 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