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: Thu, 07 Jul 2011 15:52:46 -0400 Message-ID: References: <0aiprg76eu.fsf@fencepost.gnu.org> <87hb6zt8rg.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310069582 14586 80.91.229.12 (7 Jul 2011 20:13:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 20:13:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 22:12:56 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 1QeuwP-00015Q-Pq for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2011 22:12:54 +0200 Original-Received: from localhost ([::1]:54565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeuwO-0008SI-BX for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2011 16:12:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qeud4-0003hO-MD for emacs-devel@gnu.org; Thu, 07 Jul 2011 15:52:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qeud2-0005VX-Ud for emacs-devel@gnu.org; Thu, 07 Jul 2011 15:52:54 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qeucz-0005UZ-2S; Thu, 07 Jul 2011 15:52:49 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p67JqkIa030958; Thu, 7 Jul 2011 15:52:47 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CBB49B4177; Thu, 7 Jul 2011 15:52:46 -0400 (EDT) In-Reply-To: <87hb6zt8rg.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 06 Jul 2011 17:10:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.5 X-NAI-Spam-Rules: 2 Rules triggered PHONE_800=0.5, RV3911=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3911> : streams <658545> : uri <909046> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:141742 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). > How would you change this? > (defun unbury-buffer () > "Switch to the last buffer in the buffer list." > (interactive) > (switch-to-buffer (last-buffer))) Either using with-no-warnings or using set-window-buffer. Stefan