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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/undo.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c53dd35e2d2..e2505f5dfb7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-09-22 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * undo.c (record_point): Don't call Fundo_boundary for first | ||
| 4 | change. (Bug#731) | ||
| 5 | |||
| 1 | 2008-09-22 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-09-22 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * emacs.c (Fdaemonp): Doc fix. | 8 | * emacs.c (Fdaemonp): Doc fix. |
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 | ||