1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

(Foverlay_put): Don't call redisplay_region if overlay has no buffer.

This commit is contained in:
Richard M. Stallman 1993-11-16 07:09:11 +00:00
parent 1df4537453
commit 25d16451c8

View File

@ -1865,9 +1865,11 @@ DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
CHECK_OVERLAY (overlay, 0);
redisplay_region (XMARKER (OVERLAY_START (overlay))->buffer,
marker_position (OVERLAY_START (overlay)),
marker_position (OVERLAY_END (overlay)));
tail = Fmarker_buffer (OVERLAY_START (overlay));
if (! NILP (tail))
redisplay_region (XMARKER (OVERLAY_START (overlay))->buffer,
marker_position (OVERLAY_START (overlay)),
marker_position (OVERLAY_END (overlay)));
plist = Fcdr_safe (XCONS (overlay)->cdr);