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: Tue, 05 Jul 2011 21:18:28 -0400 Message-ID: References: <0aiprg76eu.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309915435 5428 80.91.229.12 (6 Jul 2011 01:23:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 01:23:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 03:23:51 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 1QeGqF-00080j-En for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 03:23:51 +0200 Original-Received: from localhost ([::1]:54973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeGqD-0005Jx-T1 for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2011 21:23:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeGl6-0004Hu-Kk for emacs-devel@gnu.org; Tue, 05 Jul 2011 21:18:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeGl4-0003EV-Mh for emacs-devel@gnu.org; Tue, 05 Jul 2011 21:18:32 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:54742 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeGl4-0003EP-BO; Tue, 05 Jul 2011 21:18:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAKW3E05FxIV4/2dsb2JhbABTqA14iHrDdoY2BJ5chCw X-IronPort-AV: E=Sophos;i="4.65,482,1304308800"; d="scan'208";a="120616829" Original-Received: from 69-196-133-120.dsl.teksavvy.com (HELO pastel.home) ([69.196.133.120]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 05 Jul 2011 21:18:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CCCE5592B2; Tue, 5 Jul 2011 21:18:28 -0400 (EDT) In-Reply-To: <0aiprg76eu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 05 Jul 2011 17:40:25 -0400") 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:141629 Archived-At: > Was it really necessary to mark switch-to-buffer "for interactive use > only"? It's a pretty basic command that was used in ~ 800 places in the > Emacs 23.3 sources. 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). In Emacs-23, I basically redefined switch-to-buffer as something akin to pop-to-buffer-same-window which fixes many of those bugs but introduces others. > Was it really necessary to mark switch-to-buffer "for interactive use > only"? It's a pretty basic command that was used in ~ 800 places in the > Emacs 23.3 sources. Indeed, the manual needs to be fixed in this respect. > 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. Stefan