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: Pretest begins end-June Date: Wed, 01 Jun 2011 17:58:32 +0200 Message-ID: <4DE661A8.7010706@gmx.at> References: <87y61ojhp4.fsf@stupidchicken.com> <4DE60326.8040505@gmx.at> <4DE64788.5060304@gmx.at> 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 1306971945 32597 80.91.229.12 (1 Jun 2011 23:45:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2011 23:45:45 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 02 01:45:40 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRv6Z-00055O-TT for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2011 01:45:40 +0200 Original-Received: from localhost ([::1]:35769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRv6Y-0002RF-JI for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2011 19:45:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRuQp-0008NS-LO for emacs-devel@gnu.org; Wed, 01 Jun 2011 19:02:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRuQo-0005Tq-3Z for emacs-devel@gnu.org; Wed, 01 Jun 2011 19:02:31 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:59761) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QRnoa-0007w5-HT for emacs-devel@gnu.org; Wed, 01 Jun 2011 11:58:36 -0400 Original-Received: (qmail invoked by alias); 01 Jun 2011 15:58:34 -0000 Original-Received: from 62-47-47-170.adsl.highway.telekom.at (EHLO [62.47.47.170]) [62.47.47.170] by mail.gmx.net (mp042) with SMTP; 01 Jun 2011 17:58:34 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+iul4FEQ2imtMv8yl72N8Znbl4v+HcNzladCuEeK TPIGQ6mQQ2uuAO User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140038 Archived-At: >> (let ((pop-up-frames t)) >> (pop-to-buffer buffer)) > > The part I don't understand is why we can't preserve backward > compatibility for such code. Because it's not quite easy to decide in general which value should prevail. When `display-buffer' encounters a setting like this it would have to know whether it comes from a user who has set this in .emacs for Emacs < 24 or from an application that has not yet adopted the new behavior. In the former case, I would have to merge the request to pop up a new frame with the actual customization of `display-buffer-alist'. Now `pop-up-frames' is probably not very problematic in this context, but the options for popping up and reusing windows have been expanded considerably and most of these would get lost. Note: They would get lost because `display-buffer' would _have to assume_ that a specific behavior was requested by the application although that application did _not_ rebind the corresponding variable in the first place. It might be possible to use some heuristics like "`pop-up-windows' is by default t, so if `display-buffer' sees that this is t it will disregard it and consult the value of `display-buffer-alist' instead". But doing such guesses doesn't strike me as very robust :-( martin