From: Richard M. Stallman Date: Tue, 16 Nov 1993 07:09:11 +0000 (+0000) Subject: (Foverlay_put): Don't call redisplay_region if overlay has no buffer. X-Git-Tag: emacs-19.34~10808 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25d16451c8bdcbfadc904221b11579c281dc3c97;p=emacs.git (Foverlay_put): Don't call redisplay_region if overlay has no buffer. --- diff --git a/src/buffer.c b/src/buffer.c index 7095498c2e8..d4300e3b5ed 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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);