Function: compilation--expand-fn
compilation--expand-fn is a byte-compiled function defined in
compile.el.gz.
Signature
(compilation--expand-fn DIRECTORY FILENAME)
Documentation
Expand FILENAME or resolve its true name.
Unlike expand-file-name, file-truename follows symlinks, which
we try to avoid if possible.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defun compilation--expand-fn (directory filename)
"Expand FILENAME or resolve its true name.
Unlike `expand-file-name', `file-truename' follows symlinks, which
we try to avoid if possible."
(let* ((expandedname (expand-file-name filename directory)))
(if (file-exists-p expandedname)
expandedname
(file-truename (file-name-concat directory filename)))))