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: switch-to-buffer: for interactive use only Date: Fri, 08 Jul 2011 08:57:34 -0400 Message-ID: References: <0aiprg76eu.fsf@fencepost.gnu.org> <87hb6zt8rg.fsf@stupidchicken.com> <8739ihlsry.fsf@stupidchicken.com> <4E16A728.5040002@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310129893 13935 80.91.229.12 (8 Jul 2011 12:58:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 12:58:13 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 14:58:08 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 1QfAdB-00061B-GR for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 14:58:05 +0200 Original-Received: from localhost ([::1]:36751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfAdA-0001D6-A1 for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 08:58:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfAcl-0001CH-AA for emacs-devel@gnu.org; Fri, 08 Jul 2011 08:57:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfAcj-0006vM-LI for emacs-devel@gnu.org; Fri, 08 Jul 2011 08:57:38 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:29605 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfAcj-0006uw-38 for emacs-devel@gnu.org; Fri, 08 Jul 2011 08:57:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAIH9Fk5MCqt8/2dsb2JhbABTp0N4iHvDBoY4BJ59hC8 X-IronPort-AV: E=Sophos;i="4.65,499,1304308800"; d="scan'208";a="123733426" Original-Received: from 76-10-171-124.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.124]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 08 Jul 2011 08:57:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4199B59160; Fri, 8 Jul 2011 08:57:34 -0400 (EDT) In-Reply-To: <4E16A728.5040002@gmx.at> (martin rudalics's message of "Fri, 08 Jul 2011 08:43:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:141786 Archived-At: >> PS: BTW, I think the interactive use of switch-to-buffer is "the second >> case" (and should hence call pop-to-buffer-same-window). > If this refers to the two cases cited above, then I think that the > interactive use of `switch-to-buffer' is "the first case" and should not > call `pop-to-buffer-same-window'. At least when called from a minibuffer-only frame, C-x b should pretty clearly use pop-to-buffer(-same-window) rather than signal an error. > No. `pop-to-buffer-same-window' doesn't use the selected window if it's > weakly dedicated. Think of making a window dedicated as a poor man's > way of saying "leave this window alone unless I explicitly want to show > another buffer in it". That's a mistake: if the window is fully dedicated, that's right, but if it's weakly dedicated, pop-to-buffer-same-window should override the weak dedication, like switch-to-buffer does (otherwise, there would never be any difference between the two forms of dedication). Stefan