mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
buffer.c: Don't involve the redisplay if the overlay has no proprties
* src/buffer.c (drop_overlay, Fmove_overlay): Test overlay's plist before calling `modify_overlay`.
This commit is contained in:
parent
dcdd76f89e
commit
eba26e9489
|
|
@ -980,7 +980,8 @@ drop_overlay (struct Lisp_Overlay *ov)
|
|||
if (! ov->buffer)
|
||||
return;
|
||||
|
||||
modify_overlay (ov->buffer, overlay_start (ov), overlay_end (ov));
|
||||
if (!NILP (ov->plist))
|
||||
modify_overlay (ov->buffer, overlay_start (ov), overlay_end (ov));
|
||||
remove_buffer_overlay (ov->buffer, ov);
|
||||
}
|
||||
|
||||
|
|
@ -3763,7 +3764,9 @@ buffer. */)
|
|||
n_beg, n_end);
|
||||
|
||||
/* If the overlay has changed buffers, do a thorough redisplay. */
|
||||
if (!BASE_EQ (buffer, obuffer))
|
||||
if (NILP (OVERLAY_PLIST (overlay)))
|
||||
; /* No props so the overlay doesn't affect the display. */
|
||||
else if (!BASE_EQ (buffer, obuffer))
|
||||
{
|
||||
/* Redisplay where the overlay was. */
|
||||
if (ob)
|
||||
|
|
|
|||
Loading…
Reference in a new issue