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: managing windows in two frames Date: Sat, 07 Sep 2013 11:37:28 +0200 Message-ID: <522AF3D8.8010303@gmx.at> References: <8561uiclrj.fsf@stephe-leake.org> <5225EF0F.1090109@gmx.at> <52260D12.4040002@gmx.at> <5226D26F.7090301@gmx.at> <52274BE9.1010504@gmx.at> <5229B427.9010303@gmx.at> <522A0D72.5060204@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378546672 13217 80.91.229.3 (7 Sep 2013 09:37:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 09:37:52 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 07 11:37:54 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VIExk-0001P0-P5 for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 11:37:52 +0200 Original-Received: from localhost ([::1]:41301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIExk-000461-3t for ged-emacs-devel@m.gmane.org; Sat, 07 Sep 2013 05:37:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIExa-00045t-9K for emacs-devel@gnu.org; Sat, 07 Sep 2013 05:37:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIExS-0002od-Vj for emacs-devel@gnu.org; Sat, 07 Sep 2013 05:37:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIExS-0002oU-MI for emacs-devel@gnu.org; Sat, 07 Sep 2013 05:37:34 -0400 Original-Received: from [62.47.33.250] ([62.47.33.250]) by mail.gmx.com (mrgmx003) with ESMTPA (Nemesis) id 0Mg42v-1VfWxs0Inl-00NNoy for ; Sat, 07 Sep 2013 11:37:33 +0200 In-Reply-To: X-Provags-ID: V03:K0:KREfZbWdBcuhC3zY0mhDLVU/3PD3AFvFLFFH7kSlxenarL99McV UpmMDkBkYf9DtTxlTKkPEhh/rrRT9DFpiYN13u4K2Ftqf6RcADPU0bxAn3+mIHLZSphKtzg krqZIy2B+VDTu3z0lCJoMFCxvQiOyP98QIZ4iq0/dbflbf/dpmSVzOr1Z0M8uWbM8L/YhOY d1plTV6hZUG1tfGlO2fFA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 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:163252 Archived-At: > Ah, indeed it's simpler. It does have the disadvantage of relying on an > obsolete variable, tho. I thought Jorge wanted something that works with existing (and elder) Emacsen. > Maybe we should define a new macro `with-inhibit-window-changes' which > could replace save-window-excursion for those uses (it might use > save-window-excursion internally, just in case, but would also try to > prevent creation of frames and window changes in other frames). We could easily do that but for one issue: Some buffer display calls expect that neither snow nor rain will prevent Emacs from producing a suitable window (compare bug#15213). Also, a user's expectation that code following (pop-to-buffer (generate-new-buffer " *temp*")) operates on the new buffer is not entirely silly given our current understanding of `pop-to-buffer'. Many years ago I asked here whether anything might prevent the display of a buffer but no-one had the courage to answer ... martin