Function: elisp-flymake-byte-compile--executable
elisp-flymake-byte-compile--executable is a byte-compiled function
defined in elisp-mode.el.gz.
Signature
(elisp-flymake-byte-compile--executable)
Documentation
Return absolute file name of the Emacs executable for flymake byte-compilation.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun elisp-flymake-byte-compile--executable ()
"Return absolute file name of the Emacs executable for flymake byte-compilation."
(cond
((null elisp-flymake-byte-compile-executable)
(expand-file-name invocation-name invocation-directory))
((not (stringp elisp-flymake-byte-compile-executable))
(error "Invalid `elisp-flymake-byte-compile-executable': %s"
elisp-flymake-byte-compile-executable))
((file-name-absolute-p elisp-flymake-byte-compile-executable)
elisp-flymake-byte-compile-executable)
(t ; relative file name
(let ((filename (file-name-concat (project-root (project-current))
elisp-flymake-byte-compile-executable)))
(if (file-executable-p filename)
filename
;; The user might not have built Emacs yet, so just fall back.
(message "`elisp-flymake-byte-compile-executable' (%s) doesn't exist"
elisp-flymake-byte-compile-executable)
(expand-file-name invocation-name invocation-directory))))))