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-excursion' defeated by `set-buffer' Date: Fri, 11 Mar 2011 10:54:20 +0100 Organization: Organization?!? Message-ID: <87oc5it22b.fsf@fencepost.gnu.org> References: <4D792D16.1080900@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299840057 15536 80.91.229.12 (11 Mar 2011 10:40:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 10:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 11:40:47 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 1Pxzm3-0005Ts-1y for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 11:40:47 +0100 Original-Received: from localhost ([127.0.0.1]:60890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pxzm2-0007vS-2p for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 05:40:46 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool2.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:neSpNh166HkqwectTh9ESVyPPLs= Original-Lines: 14 Original-NNTP-Posting-Date: 11 Mar 2011 10:54:22 CET Original-NNTP-Posting-Host: b2d3002c.newsspool4.arcor-online.net Original-X-Trace: DXC=HgbmjVM>1XQE47KDAk81NW4IUK 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:79972 Archived-At: Andreas Röhler writes: > Maybe let's put the question another way: > > is there an example, where save-excursion will fail, ie not restore > the buffer due to a set-buffer afterwards? No. It will restore buffer, point and mark, in that order. It is never defeated. What _may_ be defeated is an excursion happening within the scope of `set-buffer' because restoring buffer will in some instances restore to the same buffer before restoring point and mark. -- David Kastrup