From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-overriding-action Date: Tue, 13 Sep 2011 16:48:35 -0400 Message-ID: References: <87mxgem09k.fsf@stupidchicken.com> <87sjo9hfar.fsf@stupidchicken.com> <874o0p8emk.fsf@stupidchicken.com> <87ipp4webw.fsf@stupidchicken.com> <87bouvniij.fsf@stupidchicken.com> <87aaaeikr6.fsf@stupidchicken.com> <878vpx3g4d.fsf@stupidchicken.com> <87pqj9qqhp.fsf@stupidchicken.com> <87mxealsnv.fsf_-_@stupidchicken.com> <87ipoxf9ms.fsf@stupidchicken.com> <8739g0jmh7.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315946934 14672 80.91.229.12 (13 Sep 2011 20:48:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2011 20:48:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 13 22:48:49 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 1R3ZuT-000745-3Q for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2011 22:48:49 +0200 Original-Received: from localhost ([::1]:40763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3ZuN-0008QS-MQ for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2011 16:48:43 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3ZuL-0008QD-2D for emacs-devel@gnu.org; Tue, 13 Sep 2011 16:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3ZuH-0006nO-VW for emacs-devel@gnu.org; Tue, 13 Sep 2011 16:48:41 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3ZuH-0006my-Ls for emacs-devel@gnu.org; Tue, 13 Sep 2011 16:48:37 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p8DKmZ2s001748; Tue, 13 Sep 2011 16:48:35 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id ACA7B13007E; Tue, 13 Sep 2011 16:48:35 -0400 (EDT) In-Reply-To: <8739g0jmh7.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 13 Sep 2011 15:01:08 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3979=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3979> : streams <681293> : uri <958689> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:143999 Archived-At: > As far as I can see, every Lisp caller falls into one of two cases: > - "Generic" calls to display-buffer or pop-to-buffer, which don't intend > to second guess Emacs defaults and/or user settings. That's the easy case. > - Commands like `C-x 5 b' or `info-other-window', which fall under the > "explicit command" criterion and should override the defaults. This case depends: - historically, it has obeyed special-display-*, which would mean it should obey d-b-alist as well. Hence the ACTION argument. - even if/when we want to change C-x 5 b to override the d-b-alist (and special-display-* as well, of course), there are several other `other-window' cases where it's not nearly as clear cut that the user really meant to override d-b-alist (e.g. because it's the only command that has a convenient key binding). Also you forgot the switch-to-buffer case, which uses the ACTION argument. Stefan