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: [display-buffer] a way to make it behave as before? Date: Fri, 17 Jun 2011 17:47:17 +0200 Message-ID: <4DFB7705.2000401@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308328938 858 80.91.229.12 (17 Jun 2011 16:42:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 16:42:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 18:42:14 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 1QXc7a-0003rX-4C for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 18:42:14 +0200 Original-Received: from localhost ([::1]:39171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXc7Z-00057i-B6 for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 12:42:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXbGV-00063L-4A for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:47:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXbGT-0000Gx-6e for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:47:22 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:41200) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QXbGS-0000Gh-Df for emacs-devel@gnu.org; Fri, 17 Jun 2011 11:47:20 -0400 Original-Received: (qmail invoked by alias); 17 Jun 2011 15:47:18 -0000 Original-Received: from 62-47-56-195.adsl.highway.telekom.at (EHLO [62.47.56.195]) [62.47.56.195] by mail.gmx.net (mp023) with SMTP; 17 Jun 2011 17:47:18 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18ll51vHbclk3J/1FBmIjnrpTVR8WrecgjW6ZFykQ cHXhWvXv0WINVM 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: Genre and OS details not recognized. X-Received-From: 213.165.64.23 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:140612 Archived-At: > I'm fiddling `display-buffer-alist' and others so as to make > `display-buffer' behave as before, though I didn't find out a > smart way so far. What behavior I want is: > > `find-file-other-window' opens a file in the other window of > the frame when the frame is split into two windows. Don't split > either of two windows into two, IOW don't change the window > configuration of the frame[1]. I just provided a new specifier for `display-buffer-alist' called other-window-means-other-frame. Please set it and tell me whether it works (Sometimes I wonder what `find-file-other-frame' is for ;-)). > Even if there is a window that > visits the file in another frame, don't use it[2]. Does this mean that in Emacs 23 you have `display-buffer-reuse-frames' nil and `pop-up-frames' t? Anyway. Why don't you remove all instances of reuse-window from `display-buffer-alist' that would use a window on another frame, that is, use only instances of the (reuse-window ... ... nil) type. This way a window gets reused iff it's on the selected frame. > As for the `other-window' specifier, it seems there's no way to > customize so as to make it behave as above. (It might be > `display-buffer-macro-specifiers', but it's a constant.) It's been already removed from there. Please have a look. > I wish there were a switch that makes it behave as before. ;-) > > [1] I don't want an Emacs frame to be split into many windows, > because the screen height of my note is not so high, and > a font I use is not so small. > [2] `raise-frame' doesn't work on cygwin (and possibly some > window managers, like metacity). martin