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, 09 Aug 2011 12:11:45 +0300 Organization: JURTA Message-ID: <87pqkfq7du.fsf@mail.jurta.org> References: <87mxgem09k.fsf@stupidchicken.com> <4E22AE2B.5040806@gmx.at> <4E248102.6080904@gmx.at> <4E380918.3060806@gmx.at> <4E397611.5020603@gmx.at> <87oc037qwj.fsf@mail.jurta.org> <87y5z3ocdg.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312881142 5039 80.91.229.12 (9 Aug 2011 09:12:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2011 09:12:22 +0000 (UTC) Cc: martin rudalics , Chong Yidong , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 09 11:12:16 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 1QqiMB-0002AS-I6 for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2011 11:12:15 +0200 Original-Received: from localhost ([::1]:41382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqiM7-0002PM-KX for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2011 05:12:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqiM4-0002Eq-5r for emacs-devel@gnu.org; Tue, 09 Aug 2011 05:12:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqiM0-0007VQ-Ve for emacs-devel@gnu.org; Tue, 09 Aug 2011 05:12:07 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:33926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqiM0-0007VG-PW for emacs-devel@gnu.org; Tue, 09 Aug 2011 05:12:04 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 60BB66E8079; Tue, 9 Aug 2011 02:12:04 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 412ED451C11B; Tue, 9 Aug 2011 02:12:02 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 08 Aug 2011 17:34:09 -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:143050 Archived-At: > So you're suggesting I extend my scheme from > > display-buffer-alist ::= list of (CONDITION . RULE) > RULE ::= (FUNCTION . ALIST) > to > display-buffer-alist ::= list of (CONDITION . RULE) > RULE ::= (FUNCTIONS . ALIST) > FUNCTIONS ::= list of FUNCTION > > so you'd run it as (run-hook-with-args-until-success FUNCTION BUFFER ALIST)? > And we could accept a single function for FUNCTIONS (i.e. allow both of > the above forms). > > That's still fairly simple and clean, so I'm OK with it, although > it may impact the choice of predefined functions we provide in a way > that will make it more complicated for the user to setup (rather than > just display-buffer-same-window, she may have to choose a list of > functions, specifying explicitly what to do when same-window doesn't > work). > > But I guess it would let us form both FUNCTIONS and ALIST by > concatenating the various FUNCTIONS and ALIST provided by the default, > the caller, the user, and any potential override. I think it would be good to implement this powerful and flexible scheme (modulo terminology :)