branch: main commit bc0db60efabbfb75369b1730a8b1d1101af1cc81 Author: Stefan Monnier <monn...@iro.umontreal.ca> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Try and better support direct loading of tex-site --- tex-site.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tex-site.el b/tex-site.el index dfb3be3b..40ea0627 100644 --- a/tex-site.el +++ b/tex-site.el @@ -39,7 +39,14 @@ ;;; Code: (if (< emacs-major-version 21) - (error "AUCTeX requires Emacs 21 or later")) + (error "AUCTeX requires Emacs 21 or later")) ;FIXME: Really? + +(unless (or (fboundp 'TeX-modes-set) ;Avoid inf-looping. + (fboundp 'TeX-tex-mode)) ;auctex-autoloads is not loaded. + ;; Try and support the case where someone loads tex-site.el or + ;; auctex.el directly, in the old way. + (provide 'tex-site) ;Avoid (re)loading tex-site from auctex-autoloads. + (load "auctex-autoloads" 'noerror 'nomessage)) ;; Define here in order for `M-x customize-group <RET> AUCTeX <RET>' ;; to work if the main AUCTeX files are not loaded yet.