# HG changeset patch # User Miles Bader # Date 972974251 0 # Node ID 9d03916282c97d894e68f2436dc4c97edcfbdb50 # Parent a72416fbef44bc8a03fc15c20079721d521a8fb0 (read_minibuf): Reset the undo history just before starting the recursive-edit. diff -r a72416fbef44 -r 9d03916282c9 src/minibuf.c --- a/src/minibuf.c Tue Oct 31 04:17:17 2000 +0000 +++ b/src/minibuf.c Tue Oct 31 06:37:31 2000 +0000 @@ -553,6 +553,9 @@ && !NILP (Vrun_hooks)) call1 (Vrun_hooks, Qminibuffer_setup_hook); + /* Don't allow the user to undo past this point. */ + current_buffer->undo_list = Qnil; + recursive_edit_1 (); /* If cursor is on the minibuffer line,