From 4e6b7204855fe4f44b88fed496916b3edac4ba7c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 31 Oct 2000 06:37:58 +0000 Subject: [PATCH] (read_minibuf): Reset the undo history just before starting the recursive-edit. --- src/ChangeLog | 5 +++++ src/minibuf.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 93ac28eb816..fd0fac81b21 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-10-31 Miles Bader + + * minibuf.c (read_minibuf): Reset the undo history just before + starting the recursive-edit. + 2000-10-30 Gerd Moellmann * xfaces.c (menu_face_change_count): New variable. diff --git a/src/minibuf.c b/src/minibuf.c index 23365c722c8..29788a39467 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -553,6 +553,9 @@ read_minibuf (map, initial, prompt, backup_n, expflag, && !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, -- 2.39.5