> I think AUCTeX should remove the entry > (LaTeX-mode . latex-mode) > and alikes from major-mode-remap-alist, as I and Stefan discussed in > personal correspondenses last March. Stefan, do you have any comments?
I think it should do it while obeying `TeX-modes`, as in the patch below. Stefan diff --git a/tex-site.el b/tex-site.el index 64f8de00d1..0b47ddfcbe 100644 --- a/tex-site.el +++ b/tex-site.el @@ -1,6 +1,6 @@ ;;; tex-site.el - Site specific variables. Don't edit. -*- lexical-binding: t; -*- -;; Copyright (C) 2005-2024 Free Software Foundation, Inc. +;; Copyright (C) 2005-2025 Free Software Foundation, Inc. ;; ;; completely rewritten. @@ -126,6 +126,8 @@ facility." (progn (cond ((boundp 'major-mode-remap-defaults) ;; For Emacs 30 and later + (setq major-mode-remap-defaults + (assq-delete-all dst major-mode-remap-defaults)) (add-to-list 'major-mode-remap-defaults (cons elt dst))) ((boundp 'major-mode-remap-alist) ;; COMPATIBILITY for Emacs 29