From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-alist simplifications Date: Tue, 02 Aug 2011 21:01:34 +0300 Organization: JURTA Message-ID: <87aabr66bl.fsf@mail.jurta.org> 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> <4E355D2C.40709@gmx.at> <87k4axzg7j.fsf@mail.jurta.org> <87oc092gy0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312308166 14208 80.91.229.12 (2 Aug 2011 18:02:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 18:02:46 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 20:02:41 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 1QoJIe-0002YY-O8 for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 20:02:40 +0200 Original-Received: from localhost ([::1]:46547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoJIe-0007pK-Al for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 14:02:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoJIa-0007gM-J2 for emacs-devel@gnu.org; Tue, 02 Aug 2011 14:02:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoJIZ-0007YM-NP for emacs-devel@gnu.org; Tue, 02 Aug 2011 14:02:36 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:45716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoJIZ-0007Xv-HG for emacs-devel@gnu.org; Tue, 02 Aug 2011 14:02:35 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 858EE6E8064; Tue, 2 Aug 2011 11:02:33 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 50487451C13F; Tue, 2 Aug 2011 11:02:31 -0700 (PDT) In-Reply-To: <87oc092gy0.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 01 Aug 2011 13:13:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.113.175.8 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:142728 Archived-At: > Here is one suggestion. > > 1) Expose all the internal "variables" currently living inside > display-buffer-alist as Lisp variables, e.g. reuse-window-even-sizes > and pop-up-window-min-height. > > 2) Make the "display methods" specifier just another one of these > variables, e.g. call it `display-buffer-method'. > > 3) Change display-buffer-alist so that it is just a method of overriding > Lisp variables during display-buffer. One of the goals for the new design was to avoid the abuse of Lisp variables intended for user customization by code that let-binds user options like `pop-up-windows', `same-window-buffer-names', `same-window-regexps', etc. So I rather like your earlier proposal to provide `display-buffer-fallback-alist' where users can study all settings that define the default behavior and easily override them by just coping some settings from `display-buffer-fallback-alist' to `display-buffer-alist' and changing their values.