Function: batch-byte-compile-file

batch-byte-compile-file is a byte-compiled function defined in bytecomp.el.gz.

Signature

(batch-byte-compile-file FILE)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defun batch-byte-compile-file (file)
  (let ((byte-compile-root-dir (or byte-compile-root-dir default-directory)))
    (if debug-on-error
        (byte-compile-file file)
      (condition-case err
          (byte-compile-file file)
        (error
         (message ">>Error occurred processing %s: %s"
                  file (error-message-string err))
         (when (error-has-type-p err 'file-error)
           (let ((destfile (byte-compile-dest-file file)))
             (if (file-exists-p destfile)
                 (delete-file destfile))))
         nil)))))