From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: switch-to-buffer: for interactive use only Date: Tue, 05 Jul 2011 21:49:34 -0400 Message-ID: <9x62ngw53l.fsf@fencepost.gnu.org> References: <0aiprg76eu.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1309917070 12069 80.91.229.12 (6 Jul 2011 01:51:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 01:51:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 03:51:06 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 1QeHGa-0006Ko-Qa for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 03:51:05 +0200 Original-Received: from localhost ([::1]:45081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeHGZ-0001eo-El for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2011 21:51:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeHFB-0001L9-Dv for emacs-devel@gnu.org; Tue, 05 Jul 2011 21:49:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeHF9-0007bs-Jr for emacs-devel@gnu.org; Tue, 05 Jul 2011 21:49:36 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:55156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeHF9-0007bj-C5 for emacs-devel@gnu.org; Tue, 05 Jul 2011 21:49:35 -0400 Original-Received: from localhost ([127.0.0.1]:49777) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeHF8-0006uI-Sy; Tue, 05 Jul 2011 21:49:35 -0400 X-Spook: csim COSCO Leuken-Baden Jiang Zemin Guantanamo Delta X-Ran: ra^QJEc`lTU*pkr>l.a:R0'R[kV}t4FOR_=AX&BS^05\wsBR!*+-zCi<7]YV,pmCU-uDK/ X-Hue: cyan X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:141635 Archived-At: Stefan Monnier wrote: > Most of those calls were bugs waiting to catch you in Emacs<23 ("you" > being typically a user like myself who uses dedicated windows and/or > minibuffer-only frames). [...] >> Isn't there a better way to handle this than replacing hundreds of >> calls with `pop-to-buffer-same-window'? > > Not sure what that way would be. Fix switch-to-buffer? Eg make it call pop-to-buffer-same-window in the non-interactive-case? Then make a new function switch-to-buffer-sometimes-fails-and-you-probably-dont-want-this that does what the old version used to? Since you say above that "most" calls to switch-to-buffer were wrong, why not fix the majority by fixing switch-to-buffer, and let the minority of cases which need to do something different do so, if and when it turns out to matter?