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: Sun, 07 Aug 2011 21:17:01 +0300 Organization: JURTA Message-ID: <8762m9ytdi.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312741722 2970 80.91.229.12 (7 Aug 2011 18:28:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 18:28:42 +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 Sun Aug 07 20:28:37 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 1Qq85U-0001r0-H5 for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 20:28:36 +0200 Original-Received: from localhost ([::1]:41001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq85T-0006aw-TU for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 14:28:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq85P-0006Ms-2s for emacs-devel@gnu.org; Sun, 07 Aug 2011 14:28:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq85N-00010A-To for emacs-devel@gnu.org; Sun, 07 Aug 2011 14:28:31 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:41716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq85N-000104-Ls for emacs-devel@gnu.org; Sun, 07 Aug 2011 14:28:29 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 3E9966E8074; Sun, 7 Aug 2011 11:28:29 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id DC934451C247; Sun, 7 Aug 2011 11:28:27 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 05 Aug 2011 15:22:15 -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:142969 Archived-At: > display-buffer-according-to-specifiers which would interpret its > parameters in a similar way to what is now done in Martin's > buffer-display-alist. I expect this eventually will turn `display-buffer-alist' into (("\\*\\(vc-\\)?diff*" display-buffer-according-to-specifiers (spec . val)) ("\\*\\(compilation\\|grep\\)\\*" display-buffer-according-to-specifiers (spec . val)) ...) because predefined spec values are easier to customize. > I know this won't satisfy everyone, but let-binding as is done above has > too many problems of its own. Maybe we could have a new > display-buffer-default-rule variable (not a user option) such that > display-buffer uses this variable when its RULE arg is nil, so > info-other-window could do > > (let ((display-buffer-default-rule '(display-buffer-other-window))) > (info ...)) Yes, a single variable would be enough to override the display-buffer's arg (maybe a better name would be `display-buffer-specifiers'). > A related issue: I tend to dislike the *-other-(frame|window) commands > and would rather have C-x 4 and C-x 5 as prefix commands that modify the > way the subsequent command works. Not sure how best to get this behavior. Then for completeness there should be a key prefix to force displaying the buffer in the same window (when the default behavior is to display it in another window).