diff options
| author | Richard M. Stallman | 1993-11-16 07:09:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-16 07:09:11 +0000 |
| commit | 25d16451c8bdcbfadc904221b11579c281dc3c97 (patch) | |
| tree | 0642eecf1fcb8265f009adce09361603722f351b /src | |
| parent | 1df45374530428c400c5d8b1d87c9365f86b4138 (diff) | |
| download | emacs-25d16451c8bdcbfadc904221b11579c281dc3c97.tar.gz emacs-25d16451c8bdcbfadc904221b11579c281dc3c97.zip | |
(Foverlay_put): Don't call redisplay_region if overlay has no buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 8 |
1 files changed, 5 insertions, 3 deletions
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, | |||
| 1865 | 1865 | ||
| 1866 | CHECK_OVERLAY (overlay, 0); | 1866 | CHECK_OVERLAY (overlay, 0); |
| 1867 | 1867 | ||
| 1868 | redisplay_region (XMARKER (OVERLAY_START (overlay))->buffer, | 1868 | tail = Fmarker_buffer (OVERLAY_START (overlay)); |
| 1869 | marker_position (OVERLAY_START (overlay)), | 1869 | if (! NILP (tail)) |
| 1870 | marker_position (OVERLAY_END (overlay))); | 1870 | redisplay_region (XMARKER (OVERLAY_START (overlay))->buffer, |
| 1871 | marker_position (OVERLAY_START (overlay)), | ||
| 1872 | marker_position (OVERLAY_END (overlay))); | ||
| 1871 | 1873 | ||
| 1872 | plist = Fcdr_safe (XCONS (overlay)->cdr); | 1874 | plist = Fcdr_safe (XCONS (overlay)->cdr); |
| 1873 | 1875 | ||