Function: ghostel--fileref-file-at-point
ghostel--fileref-file-at-point is a natively compiled function defined
in ghostel-links.el.
Signature
(ghostel--fileref-file-at-point)
Documentation
Return the absolute file name of the detected file link at point.
Nil when point is not on a fileref: link. The name was resolved
against default-directory and checked for existence when the link
was detected. Suitable for file-name-at-point-functions.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-links.el
(defun ghostel--fileref-file-at-point ()
"Return the absolute file name of the detected file link at point.
Nil when point is not on a `fileref:' link. The name was resolved
against `default-directory' and checked for existence when the link
was detected. Suitable for `file-name-at-point-functions'."
(let ((uri (ghostel--link-uri-at-point)))
(and uri
(string-match ghostel--fileref-regex uri)
(match-string 1 uri))))