From 18d75b4ab91fef6e344e612580088b714acfdb6e Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 25 Sep 2022 13:51:30 -0400 Subject: [PATCH] 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`. --- lisp/textmodes/tex-mode.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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" -- 2.39.2