From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: `save-exursion' makes a comeback! Date: Tue, 15 Mar 2011 16:23:45 +0100 Organization: Organization?!? Message-ID: <87d3lso1a6.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300203655 7047 80.91.229.12 (15 Mar 2011 15:40:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2011 15:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 15 16:40:51 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzWMb-0001Eb-Ng for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 16:40:49 +0100 Original-Received: from localhost ([127.0.0.1]:58374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzWMb-0002Vg-8C for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 11:40:49 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ldjLy2nbXtcdg//ZVDHLEZXiU1M= Original-Lines: 14 Original-NNTP-Posting-Date: 15 Mar 2011 16:23:46 CET Original-NNTP-Posting-Host: fa36febf.newsspool2.arcor-online.net Original-X-Trace: DXC=K>aYGo<3QAPFm0Y?OE@2^XA9EHlD; 3YcR4Fo<]lROoRQ8kFjG_Fh3cBRhV55P Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: usenet.stanford.edu gnu.emacs.help:185985 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80127 Archived-At: "Drew Adams" writes: > Forget about `save-excursion' "saving" or "restoring" or > "hiding" or "protecting" anything. Forget about it "defeating" > or being "defeated". Forget all of that right now. > > The real name of `save-excursion' is `come-back-here'. > Just remember that and Bob's your uncle. M-: (with-temp-buffer (let ((b (current-buffer))) (save-excursion (set-buffer "*scratch*") (kill-buffer b))) (current-buffer)) RET -- David Kastrup