From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: switch-to-buffer: for interactive use only Date: Fri, 8 Jul 2011 22:34:04 +0200 Message-ID: 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; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310157493 27270 80.91.229.12 (8 Jul 2011 20:38:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 20:38:13 +0000 (UTC) Cc: martin rudalics , Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 22:38:07 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 1QfHoN-0002Po-1F for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 22:38:07 +0200 Original-Received: from localhost ([::1]:57939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHoM-0000dE-AU for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 16:38:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHlC-0000AX-8F for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:34:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfHl7-0000HH-J8 for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:34:49 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:56244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHl7-0000Gv-Ap for emacs-devel@gnu.org; Fri, 08 Jul 2011 16:34:45 -0400 Original-Received: by pwi12 with SMTP id 12so1679101pwi.0 for ; Fri, 08 Jul 2011 13:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=jWOd7mBBYDEpeaZ3kmPpMHp8GmGKuVi0h9CcL81KRBQ=; b=nimpntKrgc1sXV+yTvdPPdIlZ1j5e8orlnBEaIhOCM1UCu8y5/qwjSplVPgIQtBF4e lhqfJO1ifSpJn5hKDsO2axvUrO7MiLXVrhRtQyO0KzCRYCUj96zbNPw8ZlDth1LhZua1 Kb1tkz3tuTvlA+5DmJ46xMNBdT40MHStFG1a0= Original-Received: by 10.143.97.26 with SMTP id z26mr470458wfl.81.1310157284084; Fri, 08 Jul 2011 13:34:44 -0700 (PDT) Original-Received: by 10.142.144.4 with HTTP; Fri, 8 Jul 2011 13:34:04 -0700 (PDT) In-Reply-To: <87d3hkmt0k.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.41 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:141821 Archived-At: On Fri, Jul 8, 2011 at 22:12, Chong Yidong wrote: > Why does `switch-to-buffer' need to only affect the selected window? > What's wrong with using a different window, instead of signaling a > error, if the selected window can't be used? 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. =C2=A0 =C2=A0 Juanma