branch: master
commit 0df824d5d2c07a8faa687bf2816272d0d9eca865
Author: Ikumi Keita <ik...@ikumi.que.jp>
Commit: Ikumi Keita <ik...@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 24d4bdeb..18fafcff 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