|
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:0.9.4.1) 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 xyz 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.
Exactly: (let ((buffer-undo-list t)) (insert "xyz\n")) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |