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 12:07:36 +0200 Message-ID: <4E2BEEE8.1090405@gmx.at> References: <87mxgem09k.fsf@stupidchicken.com> <4E2A7EBD.7050300@gmx.at> <87livooqt6.fsf@stupidchicken.com> <4E2B158B.1080101@gmx.at> <87pql0iy2a.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 1311502067 17553 80.91.229.12 (24 Jul 2011 10:07:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2011 10:07:47 +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 12:07:43 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 1Qkvb5-0000AR-0t for ged-emacs-devel@m.gmane.org; Sun, 24 Jul 2011 12:07:43 +0200 Original-Received: from localhost ([::1]:48031 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkvb4-0004YV-H2 for ged-emacs-devel@m.gmane.org; Sun, 24 Jul 2011 06:07:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkvb2-0004UY-M8 for emacs-devel@gnu.org; Sun, 24 Jul 2011 06:07:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qkvb1-00052w-R5 for emacs-devel@gnu.org; Sun, 24 Jul 2011 06:07:40 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:48992) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Qkvb1-00052p-D9 for emacs-devel@gnu.org; Sun, 24 Jul 2011 06:07:39 -0400 Original-Received: (qmail invoked by alias); 24 Jul 2011 10:07:38 -0000 Original-Received: from 62-47-54-17.adsl.highway.telekom.at (EHLO [62.47.54.17]) [62.47.54.17] by mail.gmx.net (mp022) with SMTP; 24 Jul 2011 12:07:38 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Jt8ZnUevJ13MrL2aVV9t7pSXNywzymF6VsZI4NF H3v3LYK7FkYYGO User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87pql0iy2a.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.22 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:142249 Archived-At: >> Currently, the reuse-window-even-sizes specifier is set for all >> buffers from the value of `even-window-heights' which is t by default. >> This produces a normalized specifier which is respected whenever a >> window is reused but not written into `display-buffer-alist'. How >> should I proceed here? > > A good way to handle this is to say that :even-windows, if nil or > omitted, means to consult `even-window-heights'. If the value is > `never' or t, that overrides `even-window-heights'. But this is exactly how things are done currently. Just that you do want to turn off such merging for `display-buffer-alist'. Try to get the "default" value of `display-buffer-alist' via `display-buffer-alist-set' from a fresh Emacs started with emacs -Q. Here this gets me (removing all the scrap introduced by applications overriding default values in some uncoordinated fashion) ((((regexp . ".*")) reuse-window (reuse-window nil same nil)) ... (((regexp . ".*")) pop-up-window (pop-up-window (largest) (lru)) (pop-up-window-min-height . 40) (pop-up-window-min-width . 80)) (((regexp . ".*")) reuse-window (reuse-window-even-sizes . t))) The last line is the value from `even-window-heights' converted to a `reuse-window-even-sizes' buffer display specifier. martin