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:47:12 +0200 Message-ID: <4E355CE0.4030006@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> <87mxg2fw74.fsf@mail.jurta.org> <87pqkxrgdx.fsf@uwakimon.sk.tsukuba.ac.jp> <878vrly3cx.fsf@mail.jurta.org> 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 1312120050 24095 80.91.229.12 (31 Jul 2011 13:47:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Jul 2011 13:47:30 +0000 (UTC) Cc: "Stephen J. Turnbull" , Chong Yidong , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 31 15:47: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 1QnWMT-0006HA-TG for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2011 15:47:22 +0200 Original-Received: from localhost ([::1]:60491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnWMT-0002aa-Co for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2011 09:47:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnWMQ-0002aR-FZ for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:47:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QnWMP-0004HU-1T for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:47:18 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:37051) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QnWMO-0004HF-MX for emacs-devel@gnu.org; Sun, 31 Jul 2011 09:47:17 -0400 Original-Received: (qmail invoked by alias); 31 Jul 2011 13:47:15 -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 (mp029) with SMTP; 31 Jul 2011 15:47:15 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/MFX0ZXojM/bgvxaFzAnc1VqxhYTww8IONhORGV2 3DVZgC01J7Mimu User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <878vrly3cx.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:142568 Archived-At: > Generally behavior is defined by a set of rules with two parts: > conditions (that define the context) and actions (that define what to do). > In rules defined by `display-buffer-alist' "buffer identifiers" are > conditions and "display specifiers" are actions. But one problem with > the new design is that some conditions are implicit and hard-coded into > actions. I mean such conditions that can be expressed as e.g. > "the buffer is already displayed in another window or frame", > "the selected window is to narrow to split" and other restrictions > depending on the values of `window-min-width', `window-min-height', etc. A pure condition/rule analogy is hard to achieve. IIUC, for example, `even-window-sizes' would be a rule. This rule works on the conditions that the window used and the selected window are adjacent, one of them is higher, ... Would these be conditions? > Defining such conditions explicitly will allow writing more precise rules > and avoid the problem of merging actions (they will be executed > sequentially without problems). I'm not sure what you mean by "merging actions". How would you "merge in" the Emacs 23 default behavior of evening window heights? martin