[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex c12eba0ba2 17/43: Adjust menu
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex c12eba0ba2 17/43: Adjust menu |
Date: |
Wed, 7 Feb 2024 06:07:10 -0500 (EST) |
branch: externals/auctex
commit c12eba0ba214b5371abef1aee2f6898ad4c17ba7
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Adjust menu
* tex-jp.el (japanese-plain-TeX-mode-map, japanese-LaTeX-mode-map):
Use [remap] in keymap instead of :override advice.
* tex-info.el (Texinfo-mode-map):
* tex.el (TeX-mode-map):
Hide "Text" menu entry inherited from text mode
---
tex-info.el | 3 +++
tex-jp.el | 4 +++-
tex.el | 5 ++++-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/tex-info.el b/tex-info.el
index 912ffc6619..390524ca2e 100644
--- a/tex-info.el
+++ b/tex-info.el
@@ -546,6 +546,9 @@ is assumed by default."
(define-key map "\\" #'self-insert-command)
;; Users benefit from `TeX-electric-macro' even in Texinfo mode
(define-key map "@" #'TeX-insert-backslash)
+
+ ;; Hide "Text" menu entry inherited from text mode.
+ (define-key map [menu-bar text] #'undefined)
map)
"Keymap for Texinfo mode.")
diff --git a/tex-jp.el b/tex-jp.el
index 1d41175044..ff562e225c 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -512,7 +512,9 @@ overwrite the value already set locally."
(if (TeX-looking-at-backward "\\\\/\\(}+\\)" 50)
(replace-match "\\1" t))
(call-interactively #'japanese-TeX-self-insert-command))
-(advice-add 'TeX-insert-punctuation :override
+(define-key japanese-plain-TeX-mode-map [remap TeX-insert-punctuation]
+ #'japanese-TeX-insert-punctuation)
+(define-key japanese-LaTeX-mode-map [remap TeX-insert-punctuation]
#'japanese-TeX-insert-punctuation)
;;; Error Messages
diff --git a/tex.el b/tex.el
index 7ce968d84e..13635f6152 100644
--- a/tex.el
+++ b/tex.el
@@ -5085,7 +5085,10 @@ Brace insertion is only done if point is in a math
construct and
;; Multifile
(define-key map "\C-c_" #'TeX-master-file-ask) ;*** temporary
- (define-key map "\C-xng" #'TeX-narrow-to-group)))
+ (define-key map "\C-xng" #'TeX-narrow-to-group)
+
+ ;; Hide "Text" menu entry inherited from text mode.
+ (define-key map [menu-bar text] #'undefined)))
(defun TeX-mode-specific-command-menu (mode)
"Return a Command menu specific to the major MODE."
- [elpa] externals/auctex 5b50b1e2da 29/43: Set the safe-local-variable property with the :safe keyword, (continued)
- [elpa] externals/auctex 5b50b1e2da 29/43: Set the safe-local-variable property with the :safe keyword, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex a6e53e53d8 09/43: Refine management of mode redirection, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 52f903a4e9 08/43: Take care of `unload-feature', Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 9c850abddf 28/43: Lift required GNU Emacs version to 27.1, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 938e82ed8e 01/43: Commit for plain TeX and AmS-TeX, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 798b1fae86 39/43: Support starred version of VerbatimInput macros, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex e073809830 04/43: Commit for LaTeX mode and docTeX mode, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 26e786af63 40/43: Annotate labels during completion, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 4ddf6dd9bd 20/43: Tune docTeX mode abbrev table, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex c401a1130e 38/43: ; Arrange the documentation of the previous commit, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex c12eba0ba2 17/43: Adjust menu,
Tassilo Horn <=