From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#13594: 24.2.92; [PATCH] compilation-start doesn't consider nil OUTWIN Date: Sat, 09 Feb 2013 10:22:28 +0100 Message-ID: <51161554.9010609@gmx.at> References: <87sj5apclq.fsf@mail.jurta.org> <87r4ktoinh.fsf@mail.jurta.org> <87mwvhxehw.fsf@mail.jurta.org> <87zjzfz0nq.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360401778 32647 80.91.229.3 (9 Feb 2013 09:22:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Feb 2013 09:22:58 +0000 (UTC) Cc: 13594@debbugs.gnu.org, Leo Liu To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 09 10:23:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U46eT-0005aR-JT for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2013 10:23:17 +0100 Original-Received: from localhost ([::1]:41103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U46eA-0003uU-Hj for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2013 04:22:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U46e7-0003uD-QT for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 04:22:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U46e6-0007dH-ML for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 04:22:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U46e6-0007dD-J7 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 04:22:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U46eE-0006al-78 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2013 04:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Feb 2013 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13594-submit@debbugs.gnu.org id=B13594.136040176625318 (code B ref 13594); Sat, 09 Feb 2013 09:23:02 +0000 Original-Received: (at 13594) by debbugs.gnu.org; 9 Feb 2013 09:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:45581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U46dy-0006aJ-By for submit@debbugs.gnu.org; Sat, 09 Feb 2013 04:22:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:49677) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U46dw-0006aA-9y for 13594@debbugs.gnu.org; Sat, 09 Feb 2013 04:22:45 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.30]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M2Jbe-1Uu0ND1mjc-00s301 for <13594@debbugs.gnu.org>; Sat, 09 Feb 2013 10:22:35 +0100 Original-Received: (qmail invoked by alias); 09 Feb 2013 09:22:35 -0000 Original-Received: from 62-47-51-51.adsl.highway.telekom.at (EHLO [62.47.51.51]) [62.47.51.51] by mail.gmx.net (mp030) with SMTP; 09 Feb 2013 10:22:35 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+/ZLEENhW/IL9HNj9j5UcEluDFEDBR0onVQfRGlW e3EUhDfhAI6OC9 In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70937 Archived-At: > No, I really meant a window that's not displayed, not the root-window. > E.g. a window on a separate frame with the frame marked invisible. I'm currently investigating this idea when fitting a frame to a buffer before the frame is displayed at all. But I wouldn't recommend it in the context of the present thread - any calls to `display-buffer' should provide some visual feedback. In principle, `display-buffer' could always return a window, reusing a dedicated one or making a new frame, if necessary. OTOH, the while loop in `display-buffer' could easily give up when one of the functions it calls returns a special value, say 'skip, and return nil in that case. The problem is how to make callers of `display-buffer' (and more seriously `pop-to-buffer' and `switch-to-buffer') aware of the fact that no window was found, maybe deliberately. I think the only correct solution is to have the caller add an alist entry (or an extra argument to `display-buffer') say 'may-fail, whose semantics are: - If 'may-fail is non-nil, allow returning a nil value - I, the caller, already know how to handle that. - If 'may-fail is nil or doesn't exist, return some window at any cost. martin