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-alist simplifications Date: Sun, 24 Jul 2011 19:11:18 +0200 Message-ID: <4E2C5236.3050208@gmx.at> References: <87mxgem09k.fsf@stupidchicken.com> <4E2A7EBD.7050300@gmx.at> <87livooqt6.fsf@stupidchicken.com> <4E2B158B.1080101@gmx.at> <87wrf8iyse.fsf@stupidchicken.com> <4E2BEED2.5040608@gmx.at> <8739hvu6lh.fsf@stupidchicken.com> <4E2C50E6.3020103@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 1311527490 16598 80.91.229.12 (24 Jul 2011 17:11:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 17:11:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 24 19:11:25 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 1Ql2D7-00033F-L7 for ged-emacs-devel@m.gmane.org; Sun, 24 Jul 2011 19:11:25 +0200 Original-Received: from localhost ([::1]:40113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql2D6-0007ur-PC for ged-emacs-devel@m.gmane.org; Sun, 24 Jul 2011 13:11:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql2D4-0007um-VO for emacs-devel@gnu.org; Sun, 24 Jul 2011 13:11:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql2D4-0004pe-4Q for emacs-devel@gnu.org; Sun, 24 Jul 2011 13:11:22 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:37086) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Ql2D3-0004pY-Np for emacs-devel@gnu.org; Sun, 24 Jul 2011 13:11:22 -0400 Original-Received: (qmail invoked by alias); 24 Jul 2011 17:11:20 -0000 Original-Received: from 62-47-35-136.adsl.highway.telekom.at (EHLO [62.47.35.136]) [62.47.35.136] by mail.gmx.net (mp039) with SMTP; 24 Jul 2011 19:11:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18TvsMTd2kTnhhV7+DjVq/tP5v6E5HsT3H/aeOgsm o1p43yYQPyyfJx User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4E2C50E6.3020103@gmx.at> 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.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:142265 Archived-At: > Tell me what's missing in the form > > (setq > display-buffer-alist > '((((regexp . ".*")) > (reuse-window other nil 0) > (override . t) > (reuse-window same)))) > > for a call like > > (display-buffer "*scratch*" 'same-window) But maybe you rather meant something like (setq display-buffer-alist '((((regexp . ".*")) ;; Reuse another window on any visible frame showing the buffer ;; already, overriding application supplied specifiers. (reuse-window other same 0) ;; Reuse another window on the same frame showing another buffer, ;; overriding application supplied specifiers. (reuse-window other other) (override . t) ;; Reuse the same window. (reuse-window same)))) for a call like (display-buffer "*scratch*" 'same-window) martin