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).

Since Emacs 29.1, this function is a no-op, because the implementation of overlays changed and their lookup is now fast regardless of their position in the buffer. In particular, this function no longer affects the value returned by overlay-lists.

Probably introduced at or before Emacs version 29.1.

Source Code

// Defined in /usr/src/emacs/src/buffer.c
{
  CHECK_FIXNUM_COERCE_MARKER (pos);
  /* Noop */
  return Qnil;
}