diff options
| author | Martin Rudalics | 2008-09-22 15:40:20 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2008-09-22 15:40:20 +0000 |
| commit | 3ecc116303da6dc0200f55c28d002aa4f21e7a0c (patch) | |
| tree | 6f898ea29f5cd1480cdd5dd5cad31156cbe1ff65 /src/undo.c | |
| parent | 9d0a6e42058de55024e17ba40a8e9bb48c162db8 (diff) | |
| download | emacs-3ecc116303da6dc0200f55c28d002aa4f21e7a0c.tar.gz emacs-3ecc116303da6dc0200f55c28d002aa4f21e7a0c.zip | |
(record_point): Don't call Fundo_boundary for first
change. (Bug#731)
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 | ||