From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: `save-excursion' defeated by `set-buffer' Date: Sun, 13 Mar 2011 08:15:56 +0100 Message-ID: <4D7C6F2C.5050008@easy-emacs.de> References: <4D792D16.1080900@easy-emacs.de> <83y64ksoik.fsf@gnu.org> <87aah0j7lf.fsf@rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300000289 27888 80.91.229.12 (13 Mar 2011 07:11:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 07:11:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 08:11:25 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 1PyfSV-0004NJ-JC for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 08:11:23 +0100 Original-Received: from localhost ([127.0.0.1]:57043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyfSU-0003nu-T5 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 03:11:22 -0400 Original-Received: from [140.186.70.92] (port=34121 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyfRx-0003kF-7g for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 03:10:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyfRw-0000BR-9B for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 03:10:49 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:52208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyfRv-00009i-Se for help-gnu-emacs@gnu.org; Sun, 13 Mar 2011 03:10:48 -0400 Original-Received: from [192.168.178.29] (brln-4db9eafa.pool.mediaWays.net [77.185.234.250]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lbh4l-1QNmmr1J5n-00lBAa; Sun, 13 Mar 2011 08:10:46 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: <87aah0j7lf.fsf@rapttech.com.au> X-Provags-ID: V02:K0:DQIBST3pyMDs1HI8kPSUBFD+TKkCMtEvlYtm2XIVyPL HzInL1TAofGnSeOCvluGXwli5wGa9owE7jj92m61DcgEh32TT/ f3i5OdmivLrjvgv6a/Ar6lSBt1hXWnLuEcaOUpPUJMNGhDVEsY xIenUuvNx4l5CLx+/6H8R/zyD7JmyipPSdO1WlyDRgXngathW0 PqWe4UBNSNJl2Uw5tElqMiSGgF3efWWRKrdblTI8DQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.9 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:80055 Archived-At: [ ... ] > I think it is a little more subtle than that. People may be using it > under the expectation that point and mark will also be saved in the > buffer accessed by set-buffer. > Hi Tim, Hi Uday, wherefrom you assume that? AFAIU buffer, point and mark are stored the very moment `(save-excursion' cames in. They should be restored if the parentese closes. Every setting of buffer, mark and point between then doesn't matter as far as the buffer now current again is concerned. Maybe there have been other `save-excursion' intercurse. But every one tells it's own story. What's the difficulty? Andreas