Function: ghostel--foreign-link-p

ghostel--foreign-link-p is a natively compiled function defined in ghostel-links.el.

Signature

(ghostel--foreign-link-p BEG END)

Documentation

Non-nil when BEG..END overlaps a link this scan did not attach.

An OSC 8 span keeps its own target even where a path pattern also matches, so the whole range is checked, not just its first cell.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-links.el
(defun ghostel--foreign-link-p (beg end)
  "Non-nil when BEG..END overlaps a link this scan did not attach.
An OSC 8 span keeps its own target even where a path pattern also
matches, so the whole range is checked, not just its first cell."
  (let ((pos beg)
        (foreign nil))
    (while (and (not foreign) (< pos end))
      (let ((echo (get-text-property pos 'help-echo)))
        (when (and echo (not (ghostel--detected-link-p pos)))
          (setq foreign t))
        (setq pos (next-single-property-change pos 'help-echo nil end))))
    foreign))