[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
- Re: Issues with major-mode-remap-defaults, (continued)
- Re: Issues with major-mode-remap-defaults, Arash Esbati, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Tim Ruffing, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Arash Esbati, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Ikumi Keita, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Colin Baxter, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Ikumi Keita, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Colin Baxter, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Arash Esbati, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Ikumi Keita, 2025/01/14
- Re: Issues with major-mode-remap-defaults, Arash Esbati, 2025/01/14
- Re: Issues with major-mode-remap-defaults,
Stefan Monnier <=
- Re: Issues with major-mode-remap-defaults, Ikumi Keita, 2025/01/15