aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2003-08-19 12:39:00 +0000
committerGerd Moellmann2003-08-19 12:39:00 +0000
commit2f297815d7c375ec8f810b54cf2a3571aaeda616 (patch)
tree60fa356315e097beb5afc772258042bde0e5435d /src
parent26566a7b8cc7d48ce2731d2176bcf8283282bf0e (diff)
downloademacs-2f297815d7c375ec8f810b54cf2a3571aaeda616.tar.gz
emacs-2f297815d7c375ec8f810b54cf2a3571aaeda616.zip
(Fmove_overlay): Set overlay's next pointer
unconditionally.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c10
2 files changed, 9 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a2c45a94061..9ac972507e2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12003-08-19 Gerd Moellmann <gerd@gnu.org>
2
3 * buffer.c (Fmove_overlay): Set overlay's next pointer
4 unconditionally.
5
12003-08-16 Richard M. Stallman <rms@gnu.org> 62003-08-16 Richard M. Stallman <rms@gnu.org>
2 7
3 * editfns.c (Fencode_time): Doc fix. 8 * editfns.c (Fencode_time): Doc fix.
diff --git a/src/buffer.c b/src/buffer.c
index 40ee3f071de..b54291a89e3 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3741,15 +3741,13 @@ buffer. */)
3741 end = OVERLAY_END (overlay); 3741 end = OVERLAY_END (overlay);
3742 if (OVERLAY_POSITION (end) < b->overlay_center) 3742 if (OVERLAY_POSITION (end) < b->overlay_center)
3743 { 3743 {
3744 if (b->overlays_after) 3744 XOVERLAY (overlay)->next = b->overlays_after;
3745 XOVERLAY (overlay)->next = b->overlays_after; 3745 b->overlays_after = XOVERLAY (overlay);
3746 b->overlays_after = XOVERLAY (overlay);
3747 } 3746 }
3748 else 3747 else
3749 { 3748 {
3750 if (b->overlays_before) 3749 XOVERLAY (overlay)->next = b->overlays_before;
3751 XOVERLAY (overlay)->next = b->overlays_before; 3750 b->overlays_before = XOVERLAY (overlay);
3752 b->overlays_before = XOVERLAY (overlay);
3753 } 3751 }
3754 3752
3755 /* This puts it in the right list, and in the right order. */ 3753 /* This puts it in the right list, and in the right order. */