auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 0df824d5d2 19/37: Remove menu title inconsistenc


From: Tassilo Horn
Subject: [elpa] externals/auctex 0df824d5d2 19/37: Remove menu title inconsistency
Date: Wed, 11 Oct 2023 03:41:55 -0400 (EDT)

branch: externals/auctex
commit 0df824d5d2c07a8faa687bf2816272d0d9eca865
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Remove menu title inconsistency
    
    * tex.el (TeX-common-menu-entries): In `easy-menu-add-item', we need
    to specify the exact menu title given in `easy-menu-define'.
---
 tex.el | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/tex.el b/tex.el
index 24d4bdebd2..18fafcff10 100644
--- a/tex.el
+++ b/tex.el
@@ -5243,8 +5243,16 @@ Brace insertion is only done if point is in a math 
construct and
       (progn
         (easy-menu-add-item
          nil
-         ;; Ugly hack because docTeX mode uses the LaTeX menu.
-         (list (if (eq major-mode 'doctex-mode) "LaTeX" TeX-base-mode-name))
+         ;; Ugly hack because docTeX mode uses the LaTeX menu and
+         ;; ConTeXt mode uses "ConTeXt-en" or "ConTeXt-nl" for the
+         ;; value of `TeX-base-mode-name'.
+         ;; XXX: Perhaps we should have a new variable holding the
+         ;; mode-specific menu title?
+         (list
+          (cond
+           ((eq major-mode 'doctex-mode) "LaTeX")
+           ((eq major-mode 'context-mode) "ConTeXt")
+           (t TeX-base-mode-name)))
          (or TeX-customization-menu
              (setq TeX-customization-menu
                    (customize-menu-create 'AUCTeX "Customize AUCTeX")))))




reply via email to

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