From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-alist simplifications Date: Fri, 05 Aug 2011 22:33:48 +0200 Message-ID: <4E3C53AC.6050403@gmx.de> References: <4E3AFA34.2090903@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312576447 14132 80.91.229.12 (5 Aug 2011 20:34:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2011 20:34:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 05 22:34:03 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 1QpR5n-0005Qv-5S for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2011 22:34:03 +0200 Original-Received: from localhost ([::1]:40838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpR5m-0004KN-OJ for ged-emacs-devel@m.gmane.org; Fri, 05 Aug 2011 16:34:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpR5j-0004KE-RN for emacs-devel@gnu.org; Fri, 05 Aug 2011 16:34:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpR5i-0006rz-Q6 for emacs-devel@gnu.org; Fri, 05 Aug 2011 16:33:59 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:46926) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QpR5i-0006rp-EJ for emacs-devel@gnu.org; Fri, 05 Aug 2011 16:33:58 -0400 Original-Received: (qmail invoked by alias); 05 Aug 2011 20:33:55 -0000 Original-Received: from unknown (EHLO [10.128.56.132]) [89.204.138.132] by mail.gmx.net (mp040) with SMTP; 05 Aug 2011 22:33:55 +0200 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX1+J6ygKbsmJo/hNe/VaoX50Iy6bhe/5SkZEi8+NyW r3xCZCJsd32Ga2 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: 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:142911 Archived-At: Stefan Monnier wrote: > But I do use an unlimited number of windows (and frames), so I really > want to cater to such users as well ;-) "As well" I suppose means that in next release emacs -Q RET C-x 3 M-x y TAB will finally open the *completions* in a 3rd full width bottom window also for everyone, possibly instructed by a nice default entry in the new 'display-buffer-alist'? >> (setq window-parameter-list '( >> (window-1 (spec . val) ....) >> (window-2 (spec . val) ....) >> (window-3 (spec . val) ....) >> )) > You could write it as: > > (defun my-window-1 (buf) (foo1 buf (spec . val) ...))) > (defun my-window-2 (buf) (foo2 buf (spec . val) ...))) > (defun my-window-3 (buf) (foo3 buf (spec . val) ...))) Well, since you care for usage beyond the limits: Imagine something wants to display window-3. But there is not enough space, so window-1 would be deleted. Now you want that window-1 is not deleted but pushed to another frame instead. No problem with a common window-parameter-list, but impossible with your separate foo1/2/3 functions. --- grischka