From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday Reddy Newsgroups: gmane.emacs.help Subject: Re: `save-excursion' defeated by `set-buffer' Date: Wed, 02 Mar 2011 20:54:34 +0000 Organization: SunSITE.dk - Supporting Open source Message-ID: <4d6eae86$0$23754$14726298@news.sunsite.dk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299102031 3669 80.91.229.12 (2 Mar 2011 21:40:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 21:40:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 22:40:27 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 1PutmV-0003PO-AF for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 22:40:27 +0100 Original-Received: from localhost ([127.0.0.1]:45831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PutmU-0006Xd-Tr for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 16:40:26 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!newsfeed.straub-nv.de!nuzba.szn.dk!news.szn.dk!pnx.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 21 Original-NNTP-Posting-Host: 92.232.137.113 Original-X-Trace: news.sunsite.dk DXC=XYH036mQKe84KInH[:W; B6UdS?DZIH?U16E]45i7E1P1iLQiXd?DWb7G[N=S 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:79709 Archived-At: On 3/2/2011 5:12 PM, Andreas Röhler wrote: > > Hi, > > `byte-compile-file' sends a warning > > `save-excursion' defeated by `set-buffer' > > with resp. to such a form > > (save-excursion > (set-buffer blub) > ... > ) If you change `save-excursion' to `save-current-buffer', the warning will go away. Whether that is the right thing to do or not depends on your code. Cheers, Uday