Function: cider-repl-history-target-overlay-at

cider-repl-history-target-overlay-at is a byte-compiled function defined in cider-repl-history.el.

Signature

(cider-repl-history-target-overlay-at POSITION &optional NO-ERROR)

Documentation

Return overlay at POSITION that has property cider-repl-history-target.

If no such overlay, raise an error unless NO-ERROR is true, in which case return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl-history.el
(defun cider-repl-history-target-overlay-at (_position &optional no-error)
  "Return overlay at POSITION that has property `cider-repl-history-target'.
If no such overlay, raise an error unless NO-ERROR is true, in which
case return nil."
  (let ((ovs  (overlays-at (point))))
    (catch 'cider-repl-history-target-overlay-at
      (dolist (ov ovs)
        (when (overlay-get ov 'cider-repl-history-target)
          (throw 'cider-repl-history-target-overlay-at ov)))
      (unless no-error
        (error "No CIDER history item here")))))