Function: overlay-recenter
overlay-recenter is a function defined in buffer.c.
Signature
(overlay-recenter POS)
Documentation
Recenter the overlays of the current buffer around position POS.
That makes overlay lookup faster for positions near POS (but perhaps slower for positions far away from POS).
Source Code
// Defined in /usr/src/emacs/src/buffer.c
{
ptrdiff_t p;
CHECK_FIXNUM_COERCE_MARKER (pos);
p = clip_to_bounds (PTRDIFF_MIN, XFIXNUM (pos), PTRDIFF_MAX);
recenter_overlay_lists (current_buffer, p);
return Qnil;
}