Function: overlay-lists
overlay-lists is a function defined in buffer.c.
Signature
(overlay-lists)
Documentation
Return a list giving all the overlays of the current buffer.
For backward compatibility, the value is actually a list that holds another list; the overlays are in the inner list. The list you get is a copy, so that changing it has no effect. However, the overlays you get are the real objects that the buffer uses.
Probably introduced at or before Emacs version 29.1.
Aliases
semantic-overlay-lists (obsolete since 27.1)
Source Code
// Defined in /usr/src/emacs/src/buffer.c
{
Lisp_Object overlays = Qnil;
struct itree_node *node;
ITREE_FOREACH (node, current_buffer->overlays, BEG, Z, DESCENDING)
overlays = Fcons (node->data, overlays);
return Fcons (overlays, Qnil);
}