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, 31 Jul 2011 15:48:48 +0200 Message-ID: <4E355D40.1010406@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> <878vrnweju.fsf@stupidchicken.com> <4E2D34D7.4040002@gmx.at> <87r55cjvef.fsf@stupidchicken.com> <87sjpsnerd.fsf@mail.jurta.org> <87r55axsri.fsf@stupidchicken.com> 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 1312120142 24565 80.91.229.12 (31 Jul 2011 13:49:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Jul 2011 13:49:02 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 31 15:48:58 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 1QnWO0-0006lE-GF for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2011 15:48:56 +0200 Original-Received: from localhost ([::1]:33430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnWO0-0003JO-26 for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2011 09:48:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnWNx-0003JI-NL for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:48:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QnWNw-0004fw-Pv for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:48:53 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:53800) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QnWNw-0004fd-CT for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:48:52 -0400 Original-Received: (qmail invoked by alias); 31 Jul 2011 13:48:50 -0000 Original-Received: from 62-47-53-199.adsl.highway.telekom.at (EHLO [62.47.53.199]) [62.47.53.199] by mail.gmx.net (mp061) with SMTP; 31 Jul 2011 15:48:50 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX191dPYiiY91rOm+7wJpi7rLuN2pZXuTZHGfW68wjZ uClbAMASRNQJSg User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87r55axsri.fsf@stupidchicken.com> 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:142570 Archived-At: > If (1) is analogous to the display type in a defface spec and (2) is > analogous to face properties, then instead of lumping (1) and (2) into a > single list, a specifier should have a form like > > (CONDITIONS ATTRIBUTES) > > e.g. something like > > (((method reuse-window) (buffer same) (window other)) > (:even-sizes t :reuse-dedicated t)) > > or maybe > > ((:method reuse-window :buffer same :window other) > (:even-sizes t :reuse-dedicated t)) > > Then, "merging" `display-buffer-alist' into the `display-buffer' > specifier arg means combining the attributes for specifiers with the > "same" conditional. But what does "the same conditional" mean? > > In the current design, a (reuse-window-dedicated . t) appearing in > `display-buffer-alist' affects ALL instances of `reuse-window' > specifiers in the specifier list. (Or something like that---AFAICT it > affects all except those after another `reuse-window-dedicated' cons > cell. This is one of the things that bugs me about the design.) More precisely "after a `reuse-window-dedicated' cons cell preceding it in `display-buffer-alist'. That is, the (reuse-window-dedicated . t) cell in the form below affects only the condition where a window showing another buffer shall be used. For a window showing the same buffer no dedication is done. (setq display-buffer-alist '((((regexp . ".*")) (reuse-window other same) (reuse-window-even-sizes . nil) (reuse-window other other) (reuse-window-even-sizes . t)))) > So, should "the same conditional" mean `equal'? What do you mean by `equal' here? > Then it will no longer > be possible to use a single display-buffer-alist I suppose you mean "a single display-buffer-alist entry" here? > to affect ALL > `reuse-window' conditional specs passed to `display-buffer'. I am > personally fine with that. But how can the user formulate an attribute to do that? Note that users can do that with Emacs 23 options. martin