Function: TeX-load-style-file
TeX-load-style-file is a byte-compiled function defined in tex.el.
Signature
(TeX-load-style-file FILE)
Documentation
Load FILE checking for a Lisp extensions.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-load-style-file (file)
"Load FILE checking for a Lisp extensions."
(let ((el (concat file ".el"))
(elc (concat file ".elc")))
(cond ((file-newer-than-file-p el elc)
(if (file-readable-p el)
(if (and TeX-byte-compile
(file-writable-p elc)
(save-excursion
;; `byte-compile-file' switches buffer in Emacs 20.3.
(byte-compile-file el))
(file-readable-p elc))
(load-file elc)
(load-file el))))
((file-readable-p elc)
(load-file elc))
((file-readable-p el)
(load-file el)))))