help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save-buffer like save-excursion


From: Matthew Flaschen
Subject: Re: save-buffer like save-excursion
Date: Mon, 19 Mar 2007 01:30:48 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Stefan Monnier wrote:
>> Is there a command like save-excursion that only saves the buffer?  I
>> have several functions that must set-buffer temporarily, then do things
>> that change point.  I always want these point changes, but if set-buffer
>> changed the buffer (not necessarily true), I want to reverse that change.
> 
>> So, is there already a command for this?
> 
> with-current-buffer (or save-current-buffer)

Thanks.  I'll refactor the code (again)

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]