From: Stefan Monnier Date: Sun, 25 Sep 2022 17:51:30 +0000 (-0400) Subject: tex-mode.el: Don't override AUCTeX modes X-Git-Tag: emacs-29.0.90~1856^2~223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18d75b4ab91fef6e344e612580088b714acfdb6e;p=emacs.git tex-mode.el: Don't override AUCTeX modes * lisp/textmodes/tex-mode.el (TeX-mode, plain-TeX-mode, LaTeX-mode): Only define them as aliases in `lisp/loaddefs.el` so we don't override AUCTeX's own definitions when we load `tex-mode.el`. --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 77c0d234206..b43537265f5 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1043,12 +1043,9 @@ says which mode to use." ;; users who may have files annotated with -*- LaTeX -*- (e.g. because they ;; received them from someone using AUCTeX). -;;;###autoload -(defalias 'TeX-mode #'tex-mode) -;;;###autoload -(defalias 'plain-TeX-mode #'plain-tex-mode) -;;;###autoload -(defalias 'LaTeX-mode #'latex-mode) +;;;###autoload (defalias 'TeX-mode #'tex-mode) +;;;###autoload (defalias 'plain-TeX-mode #'plain-tex-mode) +;;;###autoload (defalias 'LaTeX-mode #'latex-mode) ;;;###autoload (define-derived-mode plain-tex-mode tex-mode "TeX"