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: Mon, 20 Jun 2011 14:23:04 +0200 Message-ID: <4DFF3BA8.3070007@gmx.at> References: <4DFB7705.2000401@gmx.at> <4DFF1223.5030100@gmx.at> 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 1308572648 11793 80.91.229.12 (20 Jun 2011 12:24:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2011 12:24:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 14:24:05 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 1QYdWO-0007tl-SK for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2011 14:24:05 +0200 Original-Received: from localhost ([::1]:38225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYdWN-0008Ao-BU for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2011 08:24:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYdVZ-000829-Gr for emacs-devel@gnu.org; Mon, 20 Jun 2011 08:23:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYdVX-0007YN-Hw for emacs-devel@gnu.org; Mon, 20 Jun 2011 08:23:13 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:43574) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QYdVW-0007Y6-PR for emacs-devel@gnu.org; Mon, 20 Jun 2011 08:23:11 -0400 Original-Received: (qmail invoked by alias); 20 Jun 2011 12:23:06 -0000 Original-Received: from 62-47-41-71.adsl.highway.telekom.at (EHLO [62.47.41.71]) [62.47.41.71] by mail.gmx.net (mp058) with SMTP; 20 Jun 2011 14:23:06 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19MDmQVES9MXj5u1b89d0kILdQUt1QDd43sLbLkOh PcW/FW94/Dt7gP 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.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:140715 Archived-At: > emacs -Q -eval '(makunbound (quote display-buffer-alist))' -l window If you make this unbound, you ignore the default values which are responsible for implementing the traditional behavior. > The *scratch* window appears in an Emacs frame. Say it is the > first frame. Type `C-x 5 b RET' there. The *Messages* window > will appear in a new Emacs frame. Say it is the second frame. > And then type `C-x 4 f ~/.emacs RET' in the second frame. Hmm, > the .emacs window appears in the first frame. With emacs -Q the *Messages* window is split here. When `display-buffer-alist' is unbound it uses a fallback method, which, since you implicitly removed the window splitting part, reuses any window but the selected one. > At least it differs from old Emacsen. It shouldn't for emacs -Q. And in this regard you're right. I remembered that someone wanted to change the default value of `display-buffer-reuse-frames' to t and have set the default value of `display-buffer-alist' accordingly. That's what you've seen earlier (but not in the scenario above!). I'll take that back. Meanwhile, try the steps below which will anticipate my change and tell me whether it works. >> If you want to avoid that another frame showing the buffer already is >> used, replace in all reuse-window specifiers you find in >> `display-buffer-alist' the last element by nil. > >> That is, wherever you see an object like > >> (reuse-window nil same visible) > >> replace the term `visible' by nil > >> (reuse-window nil same nil) > >> so only the selected and not all visible frames get inspected. > > I'll try it. Thanks. Thank you, martin