[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 7119e9b58c 14/60: ; Fix tests rel
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 7119e9b58c 14/60: ; Fix tests relying on font-lock has put syntax properties already |
Date: |
Fri, 8 Apr 2022 11:52:48 -0400 (EDT) |
branch: externals/auctex
commit 7119e9b58c747a73fcffce4e98a0bda03b4f2547
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
; Fix tests relying on font-lock has put syntax properties already
---
tests/context/context-test.el | 6 ++++++
tests/latex/font-latex-test.el | 6 ++++++
tests/latex/latex-test.el | 6 ++++++
3 files changed, 18 insertions(+)
diff --git a/tests/context/context-test.el b/tests/context/context-test.el
index 4eeab4b67a..cc7c8d549f 100644
--- a/tests/context/context-test.el
+++ b/tests/context/context-test.el
@@ -24,6 +24,12 @@
(require 'ert)
(require 'context)
+;; We need to ensure that font-lock has put the syntax properties
+;; already which won't happen in batch mode. So trigger font-lock
+;; immediately.
+(define-advice ConTeXt-mode-common-initialization (:after ())
+ (font-lock-ensure))
+
(AUCTeX-set-ert-path
'ConTeXt-indent-test/in
"context-indentation-in.tex"
diff --git a/tests/latex/font-latex-test.el b/tests/latex/font-latex-test.el
index 9cc7ac527f..0c81392add 100644
--- a/tests/latex/font-latex-test.el
+++ b/tests/latex/font-latex-test.el
@@ -27,6 +27,12 @@
(defvar font-lock-beg)
(defvar font-lock-end)
+;; We need to ensure that font-lock has put the syntax properties
+;; already which won't happen in batch mode. So trigger font-lock
+;; immediately.
+(define-advice LaTeX-common-initialization (:after ())
+ (font-lock-ensure))
+
(ert-deftest font-latex-three-dollars ()
"Test three consecutive dollar is ignored."
;; When the function `font-latex-match-dollar-math' encounters three
diff --git a/tests/latex/latex-test.el b/tests/latex/latex-test.el
index aff0adcc60..15f31a8e1a 100644
--- a/tests/latex/latex-test.el
+++ b/tests/latex/latex-test.el
@@ -24,6 +24,12 @@
(require 'ert)
(require 'latex)
+;; We need to ensure that font-lock has put the syntax properties
+;; already which won't happen in batch mode. So trigger font-lock
+;; immediately.
+(define-advice LaTeX-common-initialization (:after ())
+ (font-lock-ensure))
+
(AUCTeX-set-ert-path
'LaTeX-indent-tabular-test/in
"tabular-in.tex"
- [AUCTeX-diffs] [elpa] externals/auctex updated (8ff369bd92 -> 03ed9004cd), Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 90b1803b02 10/60: Use DEFAULT argument in latex.el where appropriate, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e625dc05ea 01/60: Improve keymap handling, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 0847db39c9 03/60: Improve file query in style/ltxtable.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 7119e9b58c 14/60: ; Fix tests relying on font-lock has put syntax properties already,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 3e95554c27 19/60: Reduce code duplication in style/sidecap.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 163dcb75bd 02/60: Fix label insertion at env. insertion with active region (bug#28382), Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex f464242eab 29/60: Enable indent by square bracket, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex f686fbca6d 16/60: Add new test, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex e37c7a8b39 31/60: Revise documentation about simultaneous process, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 844e758a47 07/60: Improve indent in tabular-like environments, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 0e0551126d 17/60: * doc/changes.texi: Document switch from initial input to default., Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex ab3bfaf103 13/60: Don't use obsolete font-lock-syntactic-keywords, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex 2be733a3e3 28/60: Add new style/l3doc.el, Tassilo Horn, 2022/04/08
- [AUCTeX-diffs] [elpa] externals/auctex dff1592319 09/60: Adjust argument list of `TeX-arg-length', Tassilo Horn, 2022/04/08