Function: compilation--file-known-p

compilation--file-known-p is a byte-compiled function defined in compile.el.gz.

Signature

(compilation--file-known-p)

Documentation

Say whether the file under point can be found.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defun compilation--file-known-p ()
  "Say whether the file under point can be found."
  (when-let* ((msg (get-text-property (point) 'compilation-message))
              (loc (compilation--message->loc msg))
              (elem (compilation-find-file-1
                     (point-marker)
                     (caar (compilation--loc->file-struct loc))
                     (cadr (car (compilation--loc->file-struct loc)))
                     (compilation--file-struct->formats
                      (compilation--loc->file-struct loc)))))
    (car elem)))