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 16:03:52 +0200 Message-ID: <4E170E48.5040408@gmx.at> 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; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310133924 7594 80.91.229.12 (8 Jul 2011 14:05:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 14:05:24 +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 16:05:20 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 1QfBg9-0006a5-Sx for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 16:05:14 +0200 Original-Received: from localhost ([::1]:39767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfBg9-0001PF-12 for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2011 10:05:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfBex-0001CL-OR for emacs-devel@gnu.org; Fri, 08 Jul 2011 10:04:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfBew-0005QE-Cj for emacs-devel@gnu.org; Fri, 08 Jul 2011 10:03:59 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:55081) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QfBev-0005Py-Nv for emacs-devel@gnu.org; Fri, 08 Jul 2011 10:03:58 -0400 Original-Received: (qmail invoked by alias); 08 Jul 2011 14:03:55 -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 (mp046) with SMTP; 08 Jul 2011 16:03:55 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19vgu1y5lZvRvgaHym1grVOzJKsp65/fzvTzrsN+5 5gOZm8XH57sOS7 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: GNU/Linux 2.6 (newer, 3) 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:141789 Archived-At: >> 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). Do you want to change this in the sense that both `switch-to-buffer' and `pop-to-buffer-same-window' should reuse a weakly dedicated window? In that case I'd obviously agree with Chong that there's no real difference between the two. 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 though whether you would want to make `display-buffer' reuse weakly dedicated windows too? What would weak dedication be good for then? martin