Function: jinx--get-overlays
jinx--get-overlays is a natively compiled function defined in jinx.el.
Signature
(jinx--get-overlays START END &optional VISIBLE)
Documentation
Return misspelled word overlays between START and END.
If VISIBLE is non-nil, only include visible overlays.
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
(defun jinx--get-overlays (start end &optional visible)
"Return misspelled word overlays between START and END.
If VISIBLE is non-nil, only include visible overlays."
(let ((pt (point)) before overlays)
(dolist (ov (overlays-in start end))
(when (and (eq (overlay-get ov 'category) 'jinx-overlay)
(not (and visible (invisible-p (overlay-start ov)))))
(push ov overlays)))
(setq overlays
(sort overlays
(lambda (a b) (< (overlay-start a) (overlay-start b)))))
(while (and (cdr overlays) (<= (overlay-start (cadr overlays)) pt))
(push (pop overlays) before))
(nconc overlays (nreverse before))))