From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: `save-excursion' defeated by `set-buffer' Date: Mon, 14 Mar 2011 10:25:42 -0400 Organization: A noiseless patient Spider Message-ID: References: <4D792D16.1080900@easy-emacs.de> <87pqpwr8ay.fsf@fencepost.gnu.org> <87d3lwr56j.fsf@fencepost.gnu.org> <4d7b8ea3$0$23760$14726298@news.sunsite.dk> <87k4g4pdi3.fsf@fencepost.gnu.org> <4d7c2ea3$0$23757$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300113925 32608 80.91.229.12 (14 Mar 2011 14:45:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 14:45:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 15:45:21 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 1Pz91L-00072e-2f for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 15:45:19 +0100 Original-Received: from localhost ([127.0.0.1]:57536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz91J-0006lP-ID for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 10:45:17 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Injection-Info: mx03.eternal-september.org; posting-host="MlVxKHoiiELTWWEIMzj3xA"; logging-data="3774"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19x5VW/Yndpi/Iy0E6shiKv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LyivF+QD9VrtSmLDcBDNCD8jVwY= sha1:WVCFXpRbiK2QrGvuSKhQCGLdrBc= Original-Xref: usenet.stanford.edu gnu.emacs.help:185951 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:80096 Archived-At: > Ok, how about > "save-current-buffer is a better choice than save-excursion" Hmm, indeed, maybe the message should simply say "Use with-current-buffer instead of save-excursion+set-buffer" > I only wish that the compiler warning was there 20 years ago so that > I wouldn't have to deal with that mess now. Oh yes! Stefan