Re: TeX-master and TeX-output-master
Dear Tohiko, > Tohiko Looka writes: > Hello again, I was told that I should provide a rough sketch on > what I am planning to do. > First let me discuss my current implementation for the custom > output directory (attached). The implementation was simplified a > bit since my previous email. The basic idea is to advise > `TeX-active-master` to return the build directory (from a custom > variable `TeX-output-dir`) whenever the extension is an output one > (defined as matching one of the outputs in > `*TeX-clean-*-suffixes`). If `TeX-output-dir` is nil, then > `TeX-active-master` is called as usual. I also define a function > `TeX-master-output-file` that returns the value of > `TeX-output-dir` of the master-file (the variable's value of > non-master files should be irrelevant). In the attached script, I > also added an example hook to set the build directory and set > `TeX-command-extra-options` appropriately. > This works most of the time, except in cases where AUCTeX uses > `TeX-active-master` to get the master directory. For example, > `TeX-active-master` is called in `TeX-clean` without an extension > and then `file-name-directory` is called to extract the > directory. In these cases, the output directory should be used > instead. > In order to implement this natively, I am planning to add the same > variable `TeX-output-dir` in AUCTeX. Then, I have two options: > 1. Add a check at the beginning of `TeX-active-master` similar to > the one in my advice. If the extension is an output extension, > return the output directory instead of the master directory. I > would also change calls to TeX-active-master where a directory is > needed so that an extension is always passed (an output extension > if the output directory is needed like in `TeX-clean`, or a tex > extension if not) 2. The second way to implement this is to simply > replace the calls to `TeX-active-master` in AUCTeX with calls to > `TeX-master-output-file` whenever the extension is an output > one. Also, replace calls to `TeX-active-master` in places where > the output directory is needed (like in TeX-clean). > There are a few issues that I am trying to figure out at the > moment: 1. The latex compiler assumes that the output directory > exists. I am not sure where the best place to create it is. 2. I > think creating an expansion variable (in `TeX-expand-list`) for > the output directory might be better than using > `TeX-command-extra-options`. This is for several reasons, most > importantly it seems that when I call `TeX-command` on a > non-master file, the local variable `TeX-command-extra-options` > (from the non-master file) is expanded rather than the one from > the master file as I would expect (As an aside, I propose that the > value of the master file be expanded instead). > Sorry for the long email, I appreciate any feedback. Especially on > which implementation is preferred. > -- Tohiko > ;;; tex-output.el --- description -*- lexical-binding: t; -*- > (defcustom TeX-output-dir nil "*The place where the output files > will be generated. > If this variable is nil, AUCTeX will assume that the output dir is > the directory of TeX-master. > It is suggested that you use the File Variables (see the info node > in the Emacs manual) to set this variable permanently for each > file." :group 'TeX-command :group 'TeX-parse :type '(string > :format "%v")) (make-variable-buffer-local 'TeX-output-dir) (put > 'TeX-output-dir 'safe-local-variable 'stringp-or-null-p) > (defun TeX-master-output-file (&optional extension) "Return the > value of `TeX-output-dir' in the master-file, opening it if > necessary. if the optional argument is non-nil it is appended as > an extension to the output file" (interactive) (if (eq extension > t) (setq extension TeX-output-extension)) (let ((file > (TeX-master-file t)) name) (with-current-buffer (or > (find-buffer-visiting file) (find-file-noselect file)) (when > TeX-output-dir ;; Expand file name in case the master directory is > different from the ;; current directory (setq name (concat > (expand-file-name TeX-output-dir) (TeX-master-file) (if name > (if extension (concat name "." extension) name) (TeX-master-file > extension > (defun TeX-clean-extensions-regexp (&optional arg) "Return a > regexp to match extensions that should be cleaned by TeX-clean. > If the optional argument ARG is non-nil then output files are > included" (let* ((mode-prefix (TeX-mode-prefix)) (suffixes (append > (symbol-value (intern (concat mode-prefix > "-clean-intermediate-suffixes"))) (when arg (symbol-value (intern > (concat mode-prefix "-clean-output-suffixes")) (regexp (concat > (mapconcat 'identit
Re: TeX-master and TeX-output-master
Hello again, I was told that I should provide a rough sketch on what I am planning to do. First let me discuss my current implementation for the custom output directory (attached). The implementation was simplified a bit since my previous email. The basic idea is to advise `TeX-active-master` to return the build directory (from a custom variable `TeX-output-dir`) whenever the extension is an output one (defined as matching one of the outputs in `*TeX-clean-*-suffixes`). If `TeX-output-dir` is nil, then `TeX-active-master` is called as usual. I also define a function `TeX-master-output-file` that returns the value of `TeX-output-dir` of the master-file (the variable's value of non-master files should be irrelevant). In the attached script, I also added an example hook to set the build directory and set `TeX-command-extra-options` appropriately. This works most of the time, except in cases where AUCTeX uses `TeX-active-master` to get the master directory. For example, `TeX-active-master` is called in `TeX-clean` without an extension and then `file-name-directory` is called to extract the directory. In these cases, the output directory should be used instead. In order to implement this natively, I am planning to add the same variable `TeX-output-dir` in AUCTeX. Then, I have two options: 1. Add a check at the beginning of `TeX-active-master` similar to the one in my advice. If the extension is an output extension, return the output directory instead of the master directory. I would also change calls to TeX-active-master where a directory is needed so that an extension is always passed (an output extension if the output directory is needed like in `TeX-clean`, or a tex extension if not) 2. The second way to implement this is to simply replace the calls to `TeX-active-master` in AUCTeX with calls to `TeX-master-output-file` whenever the extension is an output one. Also, replace calls to `TeX-active-master` in places where the output directory is needed (like in TeX-clean). There are a few issues that I am trying to figure out at the moment: 1. The latex compiler assumes that the output directory exists. I am not sure where the best place to create it is. 2. I think creating an expansion variable (in `TeX-expand-list`) for the output directory might be better than using `TeX-command-extra-options`. This is for several reasons, most importantly it seems that when I call `TeX-command` on a non-master file, the local variable `TeX-command-extra-options` (from the non-master file) is expanded rather than the one from the master file as I would expect (As an aside, I propose that the value of the master file be expanded instead). Sorry for the long email, I appreciate any feedback. Especially on which implementation is preferred. -- Tohiko ;;; tex-output.el --- description -*- lexical-binding: t; -*- (defcustom TeX-output-dir nil "*The place where the output files will be generated. If this variable is nil, AUCTeX will assume that the output dir is the directory of TeX-master. It is suggested that you use the File Variables (see the info node in the Emacs manual) to set this variable permanently for each file." :group 'TeX-command :group 'TeX-parse :type '(string :format "%v")) (make-variable-buffer-local 'TeX-output-dir) (put 'TeX-output-dir 'safe-local-variable 'stringp-or-null-p) (defun TeX-master-output-file (&optional extension) "Return the value of `TeX-output-dir' in the master-file, opening it if necessary. if the optional argument is non-nil it is appended as an extension to the output file" (interactive) (if (eq extension t) (setq extension TeX-output-extension)) (let ((file (TeX-master-file t)) name) (with-current-buffer (or (find-buffer-visiting file) (find-file-noselect file)) (when TeX-output-dir ;; Expand file name in case the master directory is different from the ;; current directory (setq name (concat (expand-file-name TeX-output-dir) (TeX-master-file) (if name (if extension (concat name "." extension) name) (TeX-master-file extension (defun TeX-clean-extensions-regexp (&optional arg) "Return a regexp to match extensions that should be cleaned by TeX-clean. If the optional argument ARG is non-nil then output files are included" (let* ((mode-prefix (TeX-mode-prefix)) (suffixes (append (symbol-value (intern (concat mode-prefix "-clean-intermediate-suffixes"))) (when arg (symbol-value (intern (concat mode-prefix "-clean-output-suffixes")) (regexp (concat (mapconcat 'identity suffixes "\\|") "\\|" (regexp-quote (TeX-region-file t t) regexp)) (define-advice TeX-active-master (:around (TeX-mast
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 3e1adadccf82c8e5a8811614f84d20161228dcdb
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 3e1adadccf82c8e5a8811614f84d20161228dcdb (commit) from 4c0d15018aaefe8802a89d4e557938e3af797065 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 3e1adadccf82c8e5a8811614f84d20161228dcdb Author: Ikumi Keita Date: Thu Jun 18 01:21:53 2020 +0900 ; * style/breqn.el (): Fix stupid mistake. --- Summary of changes: style/breqn.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 3e1adadccf82c8e5a8811614f84d20161228dcdb
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 3e1adadccf82c8e5a8811614f84d20161228dcdb (commit) from 4c0d15018aaefe8802a89d4e557938e3af797065 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 3e1adadccf82c8e5a8811614f84d20161228dcdb Author: Ikumi Keita Date: Thu Jun 18 01:21:53 2020 +0900 ; * style/breqn.el (): Fix stupid mistake. diff --git a/style/breqn.el b/style/breqn.el index 36eb78d..d10fd04 100644 --- a/style/breqn.el +++ b/style/breqn.el @@ -104,7 +104,7 @@ Keys offered for key=val query depend on ENV. \"label\" and ("darray"env-on) ("darray*" env-on) ("dsuspend" env-off (dolist (entry list) -(add-to-list texmathp-tex-commands-default entry)) +(add-to-list 'texmathp-tex-commands-default entry)) (texmathp-compile) (when (and (featurep 'font-latex) (eq TeX-install-font-lock 'font-latex-setup)) --- Summary of changes: style/breqn.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
Re: Fix of TeX-remove-style (Re: TeX-remove-style-hook is local)
Tassilo Horn writes: >>> I just did it for latex.el on the new core-latex-in-style-hooks >>> branch. >> >> What a speedy work! :-) > > Actually, it was mostly cut & paste. ;-) > > I'll do the same for plain-TeX, and I'd welcome some testing. I did some more testing and it doesn't work better and in the case of plain-TeX loses all symbols so that we would need another hack to somehow always run the plain-TeX-core style hook. So let's consider that a failed experiment. On master, I've done --8<---cut here---start->8--- diff --git a/latex.el b/latex.el index 7701eb37..db0af471 100644 --- a/latex.el +++ b/latex.el @@ -2303,8 +2303,8 @@ OPTIONAL and IGNORE are ignored." (not (y-or-n-p "Find class yourself? ")) TeX-arg-input-file-search) (prog2 - (message "Searching for LaTeX classes...") - (TeX-search-files-by-type 'texinputs 'global t t) + (message "Searching for LaTeX classes...") + (TeX-search-files-by-type 'texinputs 'global t t) (message "Searching for LaTeX classes...done")) LaTeX-style-list))) (setq style (completing-read --8<---cut here---end--->8--- as you've suggested. Bye, Tassilo
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 4c0d15018aaefe8802a89d4e557938e3af797065
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4c0d15018aaefe8802a89d4e557938e3af797065 (commit) from 1855efd20a81cfaac57218b13e8d8013b8a69bfd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4c0d15018aaefe8802a89d4e557938e3af797065 Author: Tassilo Horn Date: Wed Jun 17 18:05:43 2020 +0200 Don't call TeX-remove-style in TeX-arg-document. * latex.el (TeX-arg-document): Don't call TeX-arg-document. --- Summary of changes: latex.el | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4c0d15018aaefe8802a89d4e557938e3af797065
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4c0d15018aaefe8802a89d4e557938e3af797065 (commit) from 1855efd20a81cfaac57218b13e8d8013b8a69bfd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4c0d15018aaefe8802a89d4e557938e3af797065 Author: Tassilo Horn Date: Wed Jun 17 18:05:43 2020 +0200 Don't call TeX-remove-style in TeX-arg-document. * latex.el (TeX-arg-document): Don't call TeX-arg-document. diff --git a/latex.el b/latex.el index 7701eb3..db0af47 100644 --- a/latex.el +++ b/latex.el @@ -2303,8 +2303,8 @@ OPTIONAL and IGNORE are ignored." (not (y-or-n-p "Find class yourself? ")) TeX-arg-input-file-search) (prog2 - (message "Searching for LaTeX classes...") - (TeX-search-files-by-type 'texinputs 'global t t) + (message "Searching for LaTeX classes...") + (TeX-search-files-by-type 'texinputs 'global t t) (message "Searching for LaTeX classes...done")) LaTeX-style-list))) (setq style (completing-read @@ -2340,11 +2340,7 @@ OPTIONAL and IGNORE are ignored." (list (cons style opts) (insert TeX-grop style TeX-grcl)) - ;; remove old information - (TeX-remove-style) - - ;; defined in individual style hooks - (TeX-update-style) + (TeX-update-style t) (run-hooks 'TeX-after-document-hook)) (defvar LaTeX-after-usepackage-hook nil --- Summary of changes: latex.el | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) hooks/post-receive -- GNU AUCTeX ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
Re: Fix of TeX-remove-style (Re: TeX-remove-style-hook is local)
Ikumi Keita writes: >> I just did it for latex.el on the new core-latex-in-style-hooks >> branch. > > What a speedy work! :-) Actually, it was mostly cut & paste. ;-) I'll do the same for plain-TeX, and I'd welcome some testing. > I guess that "LATEX" style, empty in the current AUCTeX source, was > originally intended for such purpose as "LaTeX-core". > 1. LaTeX-common-initialization has > (TeX-run-style-hooks "LATEX") > 2. plain-TeX-common-initialization has > (TeX-run-style-hooks "TEX") > Probably, Per Abrahamsen had a vague plan to use the first element of > each entry of TeX-format-list as such core style, but didn't finish it. Maybe, I've thought they were for user customizations. Bye, Tassilo
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 1855efd20a81cfaac57218b13e8d8013b8a69bfd
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 1855efd20a81cfaac57218b13e8d8013b8a69bfd (commit) from 22d2eb6a33718053d12b1887b123fca68ae02f36 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 1855efd20a81cfaac57218b13e8d8013b8a69bfd Author: Ikumi Keita Date: Wed Jun 17 18:42:05 2020 +0900 ; * style/mathtools.el: A bit change to align with previous commit. diff --git a/style/mathtools.el b/style/mathtools.el index f0fb744..9701353 100644 --- a/style/mathtools.el +++ b/style/mathtools.el @@ -238,7 +238,7 @@ Put line break macro on the last line. Next, insert an ampersand." ;; Fontification (require 'texmathp) (add-to-list 'texmathp-tex-commands-default -'("\\shortintertext" arg-off) t) +'("\\shortintertext" arg-off)) (texmathp-compile) (TeX-add-style-hook --- Summary of changes: style/mathtools.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 1855efd20a81cfaac57218b13e8d8013b8a69bfd
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 1855efd20a81cfaac57218b13e8d8013b8a69bfd (commit) from 22d2eb6a33718053d12b1887b123fca68ae02f36 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 1855efd20a81cfaac57218b13e8d8013b8a69bfd Author: Ikumi Keita Date: Wed Jun 17 18:42:05 2020 +0900 ; * style/mathtools.el: A bit change to align with previous commit. --- Summary of changes: style/mathtools.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
Fix of TeX-remove-style (Re: TeX-remove-style-hook is local)
> Tassilo Horn writes: > I just did it for latex.el on the new core-latex-in-style-hooks branch. What a speedy work! :-) > At that point, TeX-active-styles is > ("art10" "article" "a" "latex2e" "LATEX" "LaTeX-core") > which seems right. "LaTeX-core" is the new style hook I added. > But when I do > M-: (TeX-remove-style) RET > M-: (TeX-update-style t) RET > TeX-active-styles is > ("art10" "article" "latex2e" "a" "NoVirtexSymbols") > Where is LaTeX-core and LATEX? And how did "NoVirtexSymbols" arrive > here? > Nevermind, the latex2 and latex2e style hooks have to run the LaTeX-core > style hook, of course. I guess that "LATEX" style, empty in the current AUCTeX source, was originally intended for such purpose as "LaTeX-core". 1. LaTeX-common-initialization has (TeX-run-style-hooks "LATEX") 2. plain-TeX-common-initialization has (TeX-run-style-hooks "TEX") Probably, Per Abrahamsen had a vague plan to use the first element of each entry of TeX-format-list as such core style, but didn't finish it. >> I think that it's enough to replace >> (TeX-remove-style) >> with >> (setq TeX-style-hook-applied-p nil) >> in TeX-arg-document. In this way, we can discard all codes related to >> "TeX-remove-style*" in AUCTeX altogether. > Wouldn't (TeX-update-style t) do the same? Oh, indeed. That's smarter. > I wonder why TeX-normal-mode binds TeX-auto-save to t. I guess there's > a reason for that, otherwise it wouldn't be there. I wonder, too. Regards, Ikumi Keita
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 22d2eb6a33718053d12b1887b123fca68ae02f36
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 22d2eb6a33718053d12b1887b123fca68ae02f36 (commit) from 0079026a7c0aa5ca0f9b22b0af65436e6675e3c3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 22d2eb6a33718053d12b1887b123fca68ae02f36 Author: Ikumi Keita Date: Tue Jun 16 17:59:07 2020 +0900 Use constant regexp to fontify math environments * font-latex.el (font-latex--match-math-envII-regexp): New internal variable to store regexp to search math environments such as "equation". (font-latex-match-math-envII): Use it. (font-latex--update-math-env): New function to update `font-latex-math-environments' and build `font-latex--match-math-envII-regexp' from it. (font-latex-math-environments-from-texmathp): Remove. (font-latex-math-environments): Change default value to nil and initialize at top level by new function. * style/breqn.el: * style/empheq.el: * style/mathtools.el: Arrange in accord with the above change. * style/amsmath.el: Arrange in accord with the above change. Add fontification rule for \boxed{}. * doc/auctex.texi: Add instruction to convert customization. diff --git a/doc/auctex.texi b/doc/auctex.texi index 4886840..ab69dd0 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -12,7 +12,7 @@ This manual is for @AUCTeX{} (version @value{VERSION} from @value{UPDATED}), a sophisticated TeX environment for Emacs. -Copyright @copyright{} 1992-1995, 2001, 2002, 2004-2019 +Copyright @copyright{} 1992-1995, 2001, 2002, 2004-2020 Free Software Foundation, Inc. @quotation @@ -2274,6 +2274,13 @@ recommended to customize @code{font-latex-math-environments}, which is initialized according to @code{texmathp-tex-commands} and @code{texmathp-tex-commands-default} by default. +To convert your customization in @code{font-latex-math-environments} +into @code{texmathp-tex-commands}, please register your own math +environments, together with starred variants if any, as entries of +@code{env-on} type in @code{texmathp-tex-commands}, then clear out +@code{font-latex-math-environments}. You have to restart Emacs for this +new customization to take effect for fontification. + In order to make math constructs more readable, @fontlatex{} displays subscript and superscript parts in a smaller font and raised or lowered respectively. This fontification feature can be controlled with the diff --git a/font-latex.el b/font-latex.el index ad2153f..984771d 100644 --- a/font-latex.el +++ b/font-latex.el @@ -1768,31 +1768,52 @@ Used for patterns like: (throw 'match t)) (require 'texmathp) -(defun font-latex-math-environments-from-texmathp (list) - "Return list of math environments extracted from LIST. -Utility to share data with texmathp.el. -LIST should have the same structure as `texmathp-tex-commands'. -Return list of environment names marked as `env-on' type in LIST, -except starred forms." - (let (result) -(dolist (entry list) - (if (and (eq 'env-on (cadr entry)) - (not (string= "*" (substring (car entry) -1 - (push (car entry) result))) -result)) - -(defcustom font-latex-math-environments - (font-latex-math-environments-from-texmathp texmathp-tex-commands1) +(defcustom font-latex-math-environments nil "List of math environment names for font locking. It is no longer recommended to customize this option. You should -customize `texmathp-tex-commands' instead because it is important for -stable operation of font lock that this option is coherent with that -option in addition to `texmathp-tex-commands-default'. -Actually, the default value of this option is now taken from those -variables." +customize `texmathp-tex-commands' instead because it is important +for stable operation of font lock that this option is coherent +with that option in addition to `texmathp-tex-commands-default'. +See info node `(auctex)Fontification of math' to convert your +customization into `texmathp-tex-commands'." + ;; This option is now used only through + ;; `font-latex--match-math-envII-regexp'. :type '(repeat string) :group 'font-latex) +(defvar font-latex--match-math-envII-regexp nil + "Regular expression to match math environments. +Set by `font-latex--update-math-env' and used in +`font-latex-match-math-envII'.") + +(defun font-latex--update-math-env (list) + "Update variables for font locking of math environments by LIST. +Helper function for style files such as amsmath.el. +LIST should have the same structure as `texmathp-tex-commands'. +Extract environments marked as `env-on' in LIST and add them to +
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 22d2eb6a33718053d12b1887b123fca68ae02f36
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 22d2eb6a33718053d12b1887b123fca68ae02f36 (commit) from 0079026a7c0aa5ca0f9b22b0af65436e6675e3c3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 22d2eb6a33718053d12b1887b123fca68ae02f36 Author: Ikumi Keita Date: Tue Jun 16 17:59:07 2020 +0900 Use constant regexp to fontify math environments * font-latex.el (font-latex--match-math-envII-regexp): New internal variable to store regexp to search math environments such as "equation". (font-latex-match-math-envII): Use it. (font-latex--update-math-env): New function to update `font-latex-math-environments' and build `font-latex--match-math-envII-regexp' from it. (font-latex-math-environments-from-texmathp): Remove. (font-latex-math-environments): Change default value to nil and initialize at top level by new function. * style/breqn.el: * style/empheq.el: * style/mathtools.el: Arrange in accord with the above change. * style/amsmath.el: Arrange in accord with the above change. Add fontification rule for \boxed{}. * doc/auctex.texi: Add instruction to convert customization. --- Summary of changes: doc/auctex.texi| 9 ++- font-latex.el | 73 +++--- style/amsmath.el | 20 +-- style/breqn.el | 11 +++- style/empheq.el| 10 +++- style/mathtools.el | 1 + 6 files changed, 72 insertions(+), 52 deletions(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit