aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorMatt Armstrong2022-10-15 20:04:12 -0700
committerMatt Armstrong2022-10-19 15:09:42 -0700
commit1c44f6c83d88914cfee159ae021be33851e0112f (patch)
tree716f66ebff581cf85e402e91c624000f41e9626b /src/buffer.c
parent19f5431cf644517776e2945912dd5d5e8933b3dc (diff)
downloademacs-1c44f6c83d88914cfee159ae021be33851e0112f.tar.gz
emacs-1c44f6c83d88914cfee159ae021be33851e0112f.zip
; * src/buffer.c (set_overlay_region): remove unused function.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e1303f2a880..74c6705cbd3 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3535,15 +3535,6 @@ modify_overlay (struct buffer *buf, ptrdiff_t start, ptrdiff_t end)
3535 modiff_incr (&BUF_OVERLAY_MODIFF (buf), 1); 3535 modiff_incr (&BUF_OVERLAY_MODIFF (buf), 1);
3536} 3536}
3537 3537
3538INLINE void
3539set_overlay_region (struct Lisp_Overlay *ov, ptrdiff_t begin, ptrdiff_t end)
3540{
3541 eassert (ov->buffer);
3542 begin = clip_to_bounds (BEG, begin, ov->buffer->text->z);
3543 end = clip_to_bounds (begin, end, ov->buffer->text->z);
3544 interval_node_set_region (ov->buffer->overlays, ov->interval, begin, end);
3545}
3546
3547DEFUN ("move-overlay", Fmove_overlay, Smove_overlay, 3, 4, 0, 3538DEFUN ("move-overlay", Fmove_overlay, Smove_overlay, 3, 4, 0,
3548 doc: /* Set the endpoints of OVERLAY to BEG and END in BUFFER. 3539 doc: /* Set the endpoints of OVERLAY to BEG and END in BUFFER.
3549If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now. 3540If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now.