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

org-roam--straight-chase-links is a natively 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 /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/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))