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

Re: multi-level undo



That made no difference for me. Was the first thing I tried. Here is
the recipe I'm using.

Run emacs with emacspeak

Open a buffer called undo.txt

Type the following, noting the blank line between each line

----------------------------------------
This is line 1

This is line 2

This is line 3

This is line 4
--------------------------------------------------

With the cursor at the end, just following 4, type C-/

With emacspeak running, the cursor jumps to the end of line 3 and
deletes the contents from the cursor (now just after the 3) to the end
(i.e. following the 4 in line 4). Then, hitting C-/ again, the deleted
text is restored, however, the cursor is not moved - it stays on the
line which says, this is line 3. Hitting C-/ again deletes all text
from the cursor to the end of the buffer i.e. the blank line and the
line which says This is line 4. Hitting C-/ again restores the delted
text. Subsequent C-/ just cycles between these two states.

Now, doing the same without emacspeak loaded is very different.

With the same input file, place the cursor at the end of the last
line, following the 4. Hit C-/ deletes the line the cursor is on -
leaving the cursor at the beginning of the line. Hitting C-/ a seond
time moves the cursor to the end of the line which says This is line
3, deleting the blank line. Hitting C-/ again deletes the line the
cursor is on and leaves the cursor at the beginning of the line.
Hitting C-/ again moves the cursor to the end of the line which says
This is line 2, leaving the cursor just after the 2 and deletes the
following blank line. Hitting it again deletes the line the cursor is
on, leaving it at the beginning of the line an hitting it again, moves
the cursor to the end of the first line, just after the 1 and deletes
the blank line. Hitting it one last time and your back at the
beginning with the buffer the way it was before you typed the first
line of text.

Tim





On 20 May 2012 12:53, Jason White <jason@jasonjgw.net> wrote:
> Try M-x undo-only and see if that restores previous changes. It works for me.
>
> -----------------------------------------------------------------------------
> To unsubscribe from the emacspeak list or change your address on the
> emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
> subject of "unsubscribe" or "help".
>



-- 
Tim Cross

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive