[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undoing changes automatically
From: |
Roland Winkler |
Subject: |
Re: undoing changes automatically |
Date: |
Mon, 12 Nov 2007 22:21:21 +0100 |
On Mon Nov 12 2007 David Kastrup wrote:
> > So I want to put the call to undo in the code such that it undoes
> > all the formatting before it throws the error.
>
> atomic-change-group is a Lisp macro in `subr.el'.
> (atomic-change-group &rest BODY)
>
> Perform BODY as an atomic change group.
> This means that if BODY exits abnormally,
> all of its changes to the current buffer are undone.
> This works regardless of whether undo is enabled in the buffer.
Perfect, thanks. It seems that this does exactly what I want.
Roland