[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex ae43b62283 03/43: Commit for ConTeXt modes
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex ae43b62283 03/43: Commit for ConTeXt modes |
Date: |
Wed, 7 Feb 2024 06:07:06 -0500 (EST) |
branch: externals/auctex
commit ae43b62283c4e56c4fc2cef26adddd3587473a0e
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Commit for ConTeXt modes
* context.el:
* context-en.el:
* context-nl.el:
* tex.el:
* tex-fold.el:
Change major mode names.
context-mode -> ConTeXt-mode
context-en-mode -> ConTeXt-en-mode
context-nl-mode -> ConTeXt-nl-mode
---
context-en.el | 7 +++++--
context-nl.el | 7 +++++--
context.el | 16 ++++++++--------
tex-fold.el | 8 ++++----
tex.el | 14 +++++++-------
5 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/context-en.el b/context-en.el
index 62394206ce..c9b984102c 100644
--- a/context-en.el
+++ b/context-en.el
@@ -203,13 +203,13 @@ That is, besides the section(-block) commands.")
'("sym" (TeX-arg-string "Symbol") (TeX-arg-literal " "))))
;;;###autoload
-(defun context-en-mode ()
+(defun ConTeXt-en-mode ()
"Major mode for editing files for ConTeXt using its english interface.
Special commands:
\\{ConTeXt-mode-map}
-Entering `context-mode' calls the value of `text-mode-hook',
+Entering `ConTeXt-mode' calls the value of `text-mode-hook',
then the value of `TeX-mode-hook', and then the value
of `ConTeXt-mode-hook'."
(interactive)
@@ -224,6 +224,9 @@ of `ConTeXt-mode-hook'."
(setq TeX-base-mode-name "ConTeXt-en")
(TeX-set-mode-name))
+;;;###autoload
+(defalias 'context-en-mode #'ConTeXt-en-mode)
+
(provide 'context-en)
;;; context-en.el ends here
diff --git a/context-nl.el b/context-nl.el
index 49aacac46d..c473874e79 100644
--- a/context-nl.el
+++ b/context-nl.el
@@ -178,13 +178,13 @@ That is, besides the section(-block) commands.")
'("sym" (TeX-arg-string "Symbol") (TeX-arg-literal " "))))
;;;###autoload
-(defun context-nl-mode ()
+(defun ConTeXt-nl-mode ()
"Major mode for editing files for ConTeXt using its dutch interface.
Special commands:
\\{ConTeXt-mode-map}
-Entering `context-mode' calls the value of `text-mode-hook',
+Entering `ConTeXt-mode' calls the value of `text-mode-hook',
then the value of `TeX-mode-hook', and then the value
of `ConTeXt-mode-hook'."
(interactive)
@@ -200,6 +200,9 @@ of `ConTeXt-mode-hook'."
(setq TeX-base-mode-name "ConTeXt-nl")
(TeX-set-mode-name))
+;;;###autoload
+(defalias 'context-nl-mode #'ConTeXt-nl-mode)
+
(provide 'context-nl)
;;; context-nl.el ends here
diff --git a/context.el b/context.el
index 40214aad4d..a3716237df 100644
--- a/context.el
+++ b/context.el
@@ -945,7 +945,7 @@ An entry looks like: (\"environment\" . function)")
(metapost-mode)
(message "Type `M-x exit-recursive-edit' to get back")
(recursive-edit)
- (context-mode)
+ (ConTeXt-mode)
(widen))
;; find smarter name. Suggestions welcome
@@ -1596,7 +1596,7 @@ else. There might be text before point."
(easy-menu-define ConTeXt-mode-command-menu
ConTeXt-mode-map
"Command menu used in ConTeXt mode."
- (TeX-mode-specific-command-menu 'context-mode))
+ (TeX-mode-specific-command-menu 'ConTeXt-mode))
;; it seems the menu is evaluated at compile/load-time
;; we don't have ConTeXt-current-interface at that time
@@ -1659,7 +1659,7 @@ else. There might be text before point."
(defun ConTeXt-menu-update (&optional menu)
"Update entries on AUCTeX menu."
- (or (not (memq major-mode '(context-mode)))
+ (or (not (memq major-mode '(ConTeXt-mode)))
(null ConTeXt-menu-changed)
(progn
(TeX-update-style)
@@ -1819,7 +1819,7 @@ that is, you do _not_ have to cater for this yourself by
adding \\\\\\=' or $."
:type '(repeat regexp)
:group 'TeX-command)
-(TeX-abbrev-mode-setup context-mode)
+(TeX-abbrev-mode-setup ConTeXt-mode)
(defun ConTeXt-mode-common-initialization ()
"Initialization code that is common for all ConTeXt interfaces."
@@ -1830,9 +1830,9 @@ that is, you do _not_ have to cater for this yourself by
adding \\\\\\=' or $."
(setq save-ConTeXt-current-interface ConTeXt-current-interface)
(plain-TeX-common-initialization)
(setq ConTeXt-current-interface save-ConTeXt-current-interface))
- (setq major-mode 'context-mode)
+ (setq major-mode 'ConTeXt-mode)
- (setq local-abbrev-table context-mode-abbrev-table)
+ (setq local-abbrev-table ConTeXt-mode-abbrev-table)
(set (make-local-variable 'TeX-style-hook-dialect) ConTeXt-dialect)
(require (intern (concat "context-" ConTeXt-current-interface)))
@@ -1922,10 +1922,10 @@ that is, you do _not_ have to cater for this yourself
by adding \\\\\\=' or $."
ConTeXt-default-interface)))))
;;;###autoload
-(defalias 'ConTeXt-mode #'context-mode)
+(defalias 'context-mode #'ConTeXt-mode)
;;;###autoload
-(defun context-mode ()
+(defun ConTeXt-mode ()
"Major mode in AUCTeX for editing ConTeXt files.
Special commands:
diff --git a/tex-fold.el b/tex-fold.el
index 12d72f80c0..f1c261ebe6 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -323,7 +323,7 @@ for macros and `math' for math macros."
(cl-pushnew i item-list :test #'equal)))
(when item-list
(setq regexp (cond ((and (eq type 'env)
- (eq major-mode 'context-mode))
+ (eq major-mode 'ConTeXt-mode))
(concat (regexp-quote TeX-esc)
"start" (regexp-opt item-list t)))
((and (eq type 'env)
@@ -422,7 +422,7 @@ Return non-nil if an item was found and folded, nil
otherwise."
(message
"Folding of environments is not supported in current mode")
(let ((item-start (cond ((and (eq type 'env)
- (eq major-mode 'context-mode))
+ (eq major-mode 'ConTeXt-mode))
(save-excursion
(ConTeXt-find-matching-start) (point)))
((and (eq type 'env)
@@ -441,7 +441,7 @@ Return non-nil if an item was found and folded, nil
otherwise."
(goto-char item-start)
(looking-at
(cond ((and (eq type 'env)
- (eq major-mode 'context-mode))
+ (eq major-mode 'ConTeXt-mode))
(concat (regexp-quote TeX-esc)
"start\\([A-Za-z]+\\)"))
((and (eq type 'env)
@@ -530,7 +530,7 @@ TYPE can be either `env' for environments, `macro' for
macros or
`math' for math macros."
(save-excursion
(cond ((and (eq type 'env)
- (eq major-mode 'context-mode))
+ (eq major-mode 'ConTeXt-mode))
(goto-char start)
(ConTeXt-find-matching-stop)
(point))
diff --git a/tex.el b/tex.el
index 512f9ca67b..09d1ea8584 100644
--- a/tex.el
+++ b/tex.el
@@ -197,13 +197,13 @@ If nil, none is specified."
;; support for ConTeXt --pg
;; first version of ConTeXt to support nonstopmode: 2003.2.10
("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
- TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
+ TeX-run-TeX nil (ConTeXt-mode) :help "Run ConTeXt once")
("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
TeX-run-TeX nil
- (context-mode) :help "Run ConTeXt until completion")
+ (ConTeXt-mode) :help "Run ConTeXt until completion")
("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
(plain-TeX-mode latex-mode doctex-mode AmSTeX-mode Texinfo-mode
- context-mode)
+ ConTeXt-mode)
:help "Run BibTeX")
("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
(plain-TeX-mode latex-mode doctex-mode AmSTeX-mode Texinfo-mode)
@@ -349,7 +349,7 @@ Any additional elements get just transferred to the
respective menu entries."
(set (const :tag "Plain TeX" plain-TeX-mode)
(const :tag "LaTeX" latex-mode)
(const :tag "DocTeX" doctex-mode)
- (const :tag "ConTeXt" context-mode)
+ (const :tag "ConTeXt" ConTeXt-mode)
(const :tag "Texinfo" Texinfo-mode)
(const :tag "AmSTeX" AmSTeX-mode)))
(repeat :tag "Menu elements" :inline t sexp))))
@@ -996,7 +996,7 @@ If no mode is given the current major mode is used."
(AmSTeX-mode . "AmSTeX")
(doctex-mode . "docTeX")
(Texinfo-mode . "Texinfo")
- (context-mode . "ConTeXt")))))
+ (ConTeXt-mode . "ConTeXt")))))
;;; Viewing
@@ -3659,7 +3659,7 @@ Choose `ignore' if you don't want AUCTeX to install
support for font locking."
"-- string likely in Japanese TeX --")
("AMSTEX" AmSTeX-mode
"\\\\document\\b")
- ("CONTEXT" context-mode
+ ("CONTEXT" ConTeXt-mode
"\\\\\\(start\\(text\\|tekst\\|proje[ck]t\\|proiect\\|\
produ[ck]t\\|produs\\|environment\\|omgeving\\|umgebung\\|prostredi\\|mediu\\|\
component\\|onderdeel\\|komponent[ea]\\|componenta\\)\
@@ -6448,7 +6448,7 @@ enter the number of the file to view, anything else to
skip: ") list)))
(autoload 'info-lookup->completions "info-look")
(defvar TeX-doc-backend-alist
- '((texdoc (plain-TeX-mode latex-mode doctex-mode AmSTeX-mode context-mode)
+ '((texdoc (plain-TeX-mode latex-mode doctex-mode AmSTeX-mode ConTeXt-mode)
(lambda ()
(when (executable-find "texdoc")
(TeX-search-files-by-type 'docs 'global t t)))
- [elpa] externals/auctex f41fbc0eac 18/43: Improve mode cleanup functions, (continued)
- [elpa] externals/auctex f41fbc0eac 18/43: Improve mode cleanup functions, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 994079d8cd 15/43: Delete ConTeXt-xx-mode experimentally, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 48cc506998 33/43: Merge branch 'feature/fix-mode-names-overlap', Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 94127f5e10 37/43: Make banner regexp customizable, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 5bd8ca03ff 13/43: ; * tex-jp.el (japanese-plain-TeX-mode): Fix mode lighter., Tassilo Horn, 2024/02/07
- [elpa] externals/auctex d7f1d28159 32/43: ; * tex.el (TeX-auto-parse-length): Fix Typo., Tassilo Horn, 2024/02/07
- [elpa] externals/auctex f9fc9619a1 35/43: ; Replace keyword wp with text, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 5b61f6c563 42/43: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex 997bff87d2 23/43: Retain compatibility for directory local variables, Tassilo Horn, 2024/02/07
- [elpa] externals/auctex ba27accea2 41/43: ; * doc/auctex.texi (Environments): Mention prefix argument., Tassilo Horn, 2024/02/07
- [elpa] externals/auctex ae43b62283 03/43: Commit for ConTeXt modes,
Tassilo Horn <=
- [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