diff options
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 63daf1fdb68..d29ba17fde5 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -79,7 +79,13 @@ record_point (pt) | |||
| 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 | ||