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: Ikumi Keita
Subject: Re: Issues with major-mode-remap-defaults
Date: Wed, 15 Jan 2025 14:35:57 +0900

Hi Stefan and Arash,

>>>>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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.

Thanks. I thought just to remove those entries unconditionally, but I
follow the proposed way since both of you suggested to pay attention to
`TeX-modes'.

I'll commit this fix.

diff --git a/tex-site.el b/tex-site.el
index 64f8de00..21678350 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,11 @@ facility."
           (progn
             (cond ((boundp 'major-mode-remap-defaults)
                    ;; For Emacs 30 and later
+                   ;; Remove the entry provided by tex-mode.el.
+                   ;; 
<URL:https://lists.gnu.org/r/auctex-devel/2025-01/msg00000.html>
+                   (setq major-mode-remap-defaults
+                         (assq-delete-all dst major-mode-remap-defaults))
+                   ;; Add the intended entry.
                    (add-to-list 'major-mode-remap-defaults (cons elt dst)))
                   ((boundp 'major-mode-remap-alist)
                    ;; COMPATIBILITY for Emacs 29

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW



reply via email to

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