Function: org-roam--straight-chase-links

org-roam--straight-chase-links is a byte-compiled function defined in org-roam-utils.el.

Signature

(org-roam--straight-chase-links FILENAME)

Documentation

Chase links in FILENAME until a name that is not a link.

This is the same as file-chase-links, except that it also handles fake symlinks that are created by the package manager straight.el on Windows.

See <https://github.com/raxod502/straight.el/issues/520>.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-utils.el
(defun org-roam--straight-chase-links (filename)
  "Chase links in FILENAME until a name that is not a link.

This is the same as `file-chase-links', except that it also
handles fake symlinks that are created by the package manager
straight.el on Windows.

See <https://github.com/raxod502/straight.el/issues/520>."
  (when (and (bound-and-true-p straight-symlink-emulation-mode)
             (fboundp 'straight-chase-emulated-symlink))
    (when-let* ((target (straight-chase-emulated-symlink filename)))
      (unless (eq target 'broken)
        (setq filename target))))
  (file-chase-links filename))