[Top][All Lists]

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

Re: save-buffer like save-excursion

From: Stefan Monnier
Subject: Re: save-buffer like save-excursion
Date: Sun, 18 Mar 2007 23:54:36 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> 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).


reply via email to

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