From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: switch-to-buffer: for interactive use only Date: Fri, 08 Jul 2011 18:45:06 +0200 Message-ID: <4E173412.3090804@gmx.at> References: <0aiprg76eu.fsf@fencepost.gnu.org> <87hb6zt8rg.fsf@stupidchicken.com> <8739ihlsry.fsf@stupidchicken.com> <4E16A728.5040002@gmx.at> <4E170E48.5040408@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310143889 8790 80.91.229.12 (8 Jul 2011 16:51:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 16:51:29 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 08 18:51:19 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 1QfEGo-0000Cc-UL for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 18:51:15 +0200 Original-Received: from localhost ([::1]:58830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfEGo-0006Wj-4N for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 12:51:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfEB2-00056f-Mi for emacs-devel@gnu.org; Fri, 08 Jul 2011 12:45:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfEB1-0001Sm-6i for emacs-devel@gnu.org; Fri, 08 Jul 2011 12:45:16 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:54280) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QfEB0-0001SS-9w for emacs-devel@gnu.org; Fri, 08 Jul 2011 12:45:14 -0400 Original-Received: (qmail invoked by alias); 08 Jul 2011 16:45:10 -0000 Original-Received: from 62-47-62-161.adsl.highway.telekom.at (EHLO [62.47.62.161]) [62.47.62.161] by mail.gmx.net (mp044) with SMTP; 08 Jul 2011 18:45:10 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19qhkoMbSNqVhVSGlzR79oDajwI9QJ5M9CMmHEdFm d8Obtw0XVitBqj User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:141808 Archived-At: >> So we should make `switch-to-buffer' do what it has always done (just >> that now it's more fully customizable). > > I'm not sure what "what it has always done" refers to. What it used to > do in Emacs-22 (and does again right now) or what it used to do in Emacs-23? I meant we shouldn't distinguish between a `switch-to-buffer' function and a `pop-to-buffer-same-window' function since both would end up doing essentially the same thing `switch-to-buffer' always did. Or is the main motivation that `pop-to-buffer-same-window' has a built-in fallback for strongly dedicated windows? >> I'm not sure though whether you >> would want to make `display-buffer' reuse weakly dedicated windows too? > > No, indeed, not display-buffer. Then tell my what you expect a function like `pop-to-buffer-same-window' do differently from `switch-to-buffer'. In any case we have to give it a different name since the `pop-to-buffer' family functions never reuse dedicated windows. martin