auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues with major-mode-remap-defaults


From: Stefan Monnier
Subject: Re: Issues with major-mode-remap-defaults
Date: Tue, 14 Jan 2025 17:53:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]