From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-alist simplifications Date: Mon, 29 Aug 2011 11:17:29 -0400 Message-ID: References: <87mxgem09k.fsf@stupidchicken.com> <87k4axzg7j.fsf@mail.jurta.org> <87oc092gy0.fsf@stupidchicken.com> <4E380897.5000406@gmx.at> <871ux2nsrw.fsf@stupidchicken.com> <4E3AA5DA.8030403@gmx.at> <87mxfnn414.fsf@stupidchicken.com> <4E3D41F2.8060801@gmx.at> <4E3FA812.3080009@gmx.at> <87zkjkb572.fsf@mail.jurta.org> <4E3FD5ED.5000206@gmx.at> <4E412E2D.90908@gmx.at> <4E422ECA.2020207@gmx.at> <4E43A253.9040404@gmx.at> <4E59F6D1.5060800@gmx.at> <4E5B5D2F.1040808@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1314631074 18123 80.91.229.12 (29 Aug 2011 15:17:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2011 15:17:54 +0000 (UTC) Cc: Juri Linkov , Chong Yidong , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 29 17:17:49 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 1Qy3ar-0002gH-R1 for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2011 17:17:45 +0200 Original-Received: from localhost ([::1]:42436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy3ar-0001UT-4A for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2011 11:17:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy3an-0001UE-Kn for emacs-devel@gnu.org; Mon, 29 Aug 2011 11:17:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy3am-0006Vd-Cj for emacs-devel@gnu.org; Mon, 29 Aug 2011 11:17:41 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:19887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy3am-0006VW-7c for emacs-devel@gnu.org; Mon, 29 Aug 2011 11:17:40 -0400 Original-Received: from ceviche.home ([96.22.109.87]) by vl-mo-mrz24.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0LQP000MS3RD2X50@vl-mo-mrz24.ip.videotron.ca> for emacs-devel@gnu.org; Mon, 29 Aug 2011 11:16:25 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id 92A17660B6; Mon, 29 Aug 2011 11:17:29 -0400 (EDT) In-reply-to: <4E5B5D2F.1040808@gmx.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 24.201.245.36 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:143628 Archived-At: > IIUC. Stefan's proposal, as can be seen from the code above, now is to do > (O . (OL UL AL DL)) > (U . (OL UL AL DL)) > (A . (OL UL AL DL)) > (D . (OL UL AL DL)) > which IMHO isn't TRT since, for example, the entries in OL might not > make sense in the context of the functions in U, A and D. This was a conscious choice on my part. It does introduce potential for problems, indeed, but it also introduces potential for more flexibility. Basically it means that parameter names have to be chosen more carefully: when beneficial the same name should be used and when not parameter names should use "private" names. E.g. `window' is probably not a good parameter name because it's likely to mean completely different things for O U A and D. E.g. the original motivation for early params to be passed to later functions (contrary to your current code) is for the `not-this-window' parameter which will usually be specified by AL and handled by D. Stefan