Do not create empty overlays with the evaporate property (Bug#9642).
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Apr 2012 22:46:35 +0000 (15:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Apr 2012 22:46:35 +0000 (15:46 -0700)
commit89a438bd861e9b80e8f80a23955624c74782921a
tree5f1a72549a39cb2ad2d00ac32af303b115b3ef73
parent7511ded8c94e37aea836e3c13ccc9a5f77b07857
Do not create empty overlays with the evaporate property (Bug#9642).

* buffer.c (Fmove_overlay): Delete an evaporating overlay
if it becomes empty after its bounds are adjusted to fit within
its buffer.  Without this fix, in a nonempty buffer (let ((o
(make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
yields an empty overlay that has the evaporate property, which is
not supposed to happen.
src/ChangeLog
src/buffer.c