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:
parent
1df4537453
commit
25d16451c8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user