From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: switch-to-buffer: for interactive use only Date: Fri, 08 Jul 2011 16:50:21 -0400 Message-ID: <87vcvcmr8y.fsf@stupidchicken.com> References: <0aiprg76eu.fsf@fencepost.gnu.org> <87hb6zt8rg.fsf@stupidchicken.com> <8739ihlsry.fsf@stupidchicken.com> <4E16A728.5040002@gmx.at> <4E170E48.5040408@gmx.at> <4E173412.3090804@gmx.at> <87d3hkmt0k.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310158256 31784 80.91.229.12 (8 Jul 2011 20:50:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 20:50:56 +0000 (UTC) Cc: martin rudalics , Stefan Monnier , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 22:50:52 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 1QfI0i-0001KW-F6 for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 22:50:52 +0200 Original-Received: from localhost ([::1]:44822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfI0h-0002Z2-Gi for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 16:50:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfI0O-0002Xs-W2 for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfI0K-0002oC-Gc for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:50:32 -0400 Original-Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]:32949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfI0J-0002nG-NK for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:50:28 -0400 Original-Received: from furball (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p68KoL3h004209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 8 Jul 2011 16:50:22 -0400 In-Reply-To: (Juanma Barranquero's message of "Fri, 8 Jul 2011 22:34:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.143 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:141822 Archived-At: Juanma Barranquero writes: > That would resurrect the bug recently fixed in bs-cycle-next where it > opened another window when the selected one was strongly dedicated. It > is called "cycle", not "bring-me": either it can cycle a new buffer > into the window, or it should say that it cannot. That's what it does > now, and that's the right thing to do. > > For some operations on a buffer with a strongly dedicated window, it > makes sense to pop up another window; for some others, it does not. > Conflating both is never going to be a good answer. Well, strictly > speaking, we can do that and use `display-buffer-alist' to allow the > user to override it; but bs-cycle-next, and operations of that kind, > should do the right thing out of the box. It seems to me that such cases are very much in the minority---AFAICT, the vast majority of uses of switch-to-buffer in the Emacs sources simply have the intention "show BUFFER, but try not to make a new window to do it". So, if creating a new window is the wrong thing for bs-cycle-next, it should be bs-cycle-next that changes---e.g. by changing from switch-to-buffer to set-window-buffer---not everything else in Emacs.