[Top][All Lists]

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

Re: Undo manipulation

From: Kevin Rodgers
Subject: Re: Undo manipulation
Date: Thu, 14 Aug 2003 10:56:13 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Bill Wohler wrote:

I don't want to add some manipulation to buffer-undo-list. For
example, let's say I have:

  1. blah
  2. blah
  3. blah

and I want an undo to hit #3, then #2 and then #1, leaving xyz alone.
Are there normal ways to do this? Like inserting markers in
buffer-undo-list to later remove desired elements.

It just occurred to me that I could save buffer-undo-list into a
temporory variable, do my thing, and then restore the variable.


(let ((buffer-undo-list t))
  (insert "xyz\n"))

Kevin Rodgers

reply via email to

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