Function: marginalia--remote-file-p
marginalia--remote-file-p is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia--remote-file-p FILE)
Documentation
Return non-nil if FILE is remote.
The return value is a string describing the remote location, e.g., the protocol.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia--remote-file-p (file)
"Return non-nil if FILE is remote.
The return value is a string describing the remote location,
e.g., the protocol."
(save-match-data
(setq file (let (file-name-handler-alist)
(substitute-in-file-name file)))
(cl-loop for r in marginalia-remote-file-regexps
if (string-match r file)
return (or (match-string 1 file) "remote"))))