auctex-diffs
[Top][All Lists]
Advanced

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

master 17564c27: Temporal workaround for ELPA release


From: Ikumi Keita
Subject: master 17564c27: Temporal workaround for ELPA release
Date: Fri, 9 Feb 2024 10:52:57 -0500 (EST)

branch: master
commit 17564c27509674042a29ecbcba1e15e68221c48e
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Temporal workaround for ELPA release
    
    * latex.el:
    * plain-tex.el:
    * tex.el:
    Make sure to delete predefined aliases defined in tex-mode.el.
    * tex-site.el.in:
    Delete `TeX--alias-overlapped-modes' call because this code runs after
    autoload declarations in ELPA installation.
---
 latex.el       | 2 ++
 plain-tex.el   | 4 +++-
 tex-site.el.in | 4 ----
 tex.el         | 2 ++
 4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/latex.el b/latex.el
index f86e6ebe..1b9a1656 100644
--- a/latex.el
+++ b/latex.el
@@ -8214,6 +8214,8 @@ This happens when \\left is inserted."
 
 (declare-function LaTeX-preview-setup "preview")
 
+;;;###autoload (if (eq (symbol-function 'LaTeX-mode) 'latex-mode)
+;;;###autoload     (defalias 'LaTeX-mode nil))
 ;;;###autoload
 (define-derived-mode LaTeX-mode TeX-mode "LaTeX"
   "Major mode in AUCTeX for editing LaTeX files.
diff --git a/plain-tex.el b/plain-tex.el
index 779c30a0..e3ffd53d 100644
--- a/plain-tex.el
+++ b/plain-tex.el
@@ -1,6 +1,6 @@
 ;;; plain-tex.el --- Support for plain TeX documents. -*- lexical-binding: t; 
-*-
 
-;; Copyright (C) 2010, 2013, 2016-2018, 2021-2022  Free Software Foundation, 
Inc.
+;; Copyright (C) 2010, 2013, 2016-2018, 2021-2024  Free Software Foundation, 
Inc.
 
 ;; Maintainer: auctex-devel@gnu.org
 ;; Keywords: tex
@@ -115,6 +115,8 @@ plain-TeX file, or any mode derived thereof.  See variable
 
 (TeX-abbrev-mode-setup plain-TeX-mode plain-tex-mode-abbrev-table)
 
+;;;###autoload (if (eq (symbol-function 'plain-TeX-mode) 'plain-tex-mode)
+;;;###autoload     (defalias 'plain-TeX-mode nil))
 ;;;###autoload
 (define-derived-mode plain-TeX-mode TeX-mode
   ;; The mode name can be "plain-TeX", but in that case, we have to
diff --git a/tex-site.el.in b/tex-site.el.in
index 1301f528..911a2080 100644
--- a/tex-site.el.in
+++ b/tex-site.el.in
@@ -161,10 +161,6 @@ Otherwise, restore AUCTeX definition saved in the symbol 
property
         (defalias mode (if restore
                            (get mode 'auctex-function-definition))))))
 
-;; Delete aliases predefined in tex-mode.el so that AUCTeX
-;; autoloads provided below take precedence.
-(TeX--alias-overlapped-modes)
-
 ;; COMPATIBILITY for Emacs<29, which executes
 ;; (defalias 'LaTeX-mode #'latex-mode) etc. in tex-mode.el.
 (with-eval-after-load 'tex-mode
diff --git a/tex.el b/tex.el
index eeb7237c..49723108 100644
--- a/tex.el
+++ b/tex.el
@@ -3745,6 +3745,8 @@ other entries will enter `plain-TeX-mode'."
                   (memq 'font-latex-verbatim-face face)
                 (eq face 'font-latex-verbatim-face))))))
 
+;;;###autoload (if (eq (symbol-function 'TeX-mode) 'tex-mode)
+;;;###autoload     (defalias 'TeX-mode nil))
 (define-derived-mode TeX-mode text-mode "TeX"
   "Base mode for AUCTeX major modes except Texinfo mode.
 



reply via email to

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