Mercurial > emacs
comparison src/buffer.c @ 88123:375f2633d815
New directory
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 Sep 2003 11:56:09 +0000 |
parents | 695cf19ef79e |
children | 2f877ed80fa6 |
comparison
equal
deleted
inserted
replaced
52428:27bc8b966642 | 88123:375f2633d815 |
---|---|
3739 | 3739 |
3740 /* Put the overlay on the wrong list. */ | 3740 /* Put the overlay on the wrong list. */ |
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 XOVERLAY (overlay)->next = b->overlays_after; | 3744 if (b->overlays_after) |
3745 b->overlays_after = XOVERLAY (overlay); | 3745 XOVERLAY (overlay)->next = b->overlays_after; |
3746 b->overlays_after = XOVERLAY (overlay); | |
3746 } | 3747 } |
3747 else | 3748 else |
3748 { | 3749 { |
3749 XOVERLAY (overlay)->next = b->overlays_before; | 3750 if (b->overlays_before) |
3750 b->overlays_before = XOVERLAY (overlay); | 3751 XOVERLAY (overlay)->next = b->overlays_before; |
3752 b->overlays_before = XOVERLAY (overlay); | |
3751 } | 3753 } |
3752 | 3754 |
3753 /* This puts it in the right list, and in the right order. */ | 3755 /* This puts it in the right list, and in the right order. */ |
3754 recenter_overlay_lists (b, b->overlay_center); | 3756 recenter_overlay_lists (b, b->overlay_center); |
3755 | 3757 |
5889 | 5891 |
5890 /* This must not be in syms_of_buffer, because Qdisabled is not | 5892 /* This must not be in syms_of_buffer, because Qdisabled is not |
5891 initialized when that function gets called. */ | 5893 initialized when that function gets called. */ |
5892 Fput (intern ("erase-buffer"), Qdisabled, Qt); | 5894 Fput (intern ("erase-buffer"), Qdisabled, Qt); |
5893 } | 5895 } |
5894 | |
5895 /* arch-tag: e48569bf-69a9-4b65-a23b-8e68769436e1 | |
5896 (do not change this comment) */ |