Mercurial > emacs
comparison src/undo.c @ 98295:a7da9fedfcf9
(record_point): Don't call Fundo_boundary for first
change. (Bug#731)
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Mon, 22 Sep 2008 15:37:42 +0000 |
parents | 8971ddf55736 |
children | e038c1a8307c |
comparison
equal
deleted
inserted
replaced
98294:d6ab37532b9b | 98295:a7da9fedfcf9 |
---|---|
77 | 77 |
78 /* Allocate a cons cell to be the undo boundary after this command. */ | 78 /* Allocate a cons cell to be the undo boundary after this command. */ |
79 if (NILP (pending_boundary)) | 79 if (NILP (pending_boundary)) |
80 pending_boundary = Fcons (Qnil, Qnil); | 80 pending_boundary = Fcons (Qnil, Qnil); |
81 | 81 |
82 if (current_buffer != last_undo_buffer) | 82 if ((current_buffer != last_undo_buffer) |
83 /* Don't call Fundo_boundary for the first change. Otherwise we | |
84 risk overwriting last_boundary_position in Fundo_boundary with | |
85 PT of the current buffer and as a consequence not insert an | |
86 undo boundary because last_boundary_position will equal pt in | |
87 the test at the end of the present function (Bug#731). */ | |
88 && (MODIFF > SAVE_MODIFF)) | |
83 Fundo_boundary (); | 89 Fundo_boundary (); |
84 last_undo_buffer = current_buffer; | 90 last_undo_buffer = current_buffer; |
85 | 91 |
86 if (CONSP (current_buffer->undo_list)) | 92 if (CONSP (current_buffer->undo_list)) |
87 { | 93 { |