[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 7030c72f87 3/3: Merge pull request #733 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 7030c72f87 3/3: Merge pull request #733 from jrblevin/update-ci |
Date: |
Sat, 22 Oct 2022 04:58:47 -0400 (EDT) |
branch: elpa/markdown-mode
commit 7030c72f878e079f12767299908265221ea4aa7d
Merge: cce3249042 f5a9ef63ad
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #733 from jrblevin/update-ci
Update test configuration
---
.github/workflows/test.yml | 2 +-
tests/markdown-test.el | 10 +++-------
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b9bea545aa..58e917bb0c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -19,7 +19,7 @@ jobs:
with:
version: ${{ matrix.emacs_version }}
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt install pandoc aspell
- name: Run tests
diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index f6b474144e..780f9cab07 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -39,10 +39,6 @@
(expand-file-name (file-name-directory
(or load-file-name buffer-file-name))))
-(defconst markdown-test-font-lock-function
- (if (fboundp 'font-lock-ensure)
- #'font-lock-ensure #'font-lock-fontify-buffer))
-
(defmacro markdown-test-string-mode (mode string &rest body)
"Run BODY in a temporary buffer containing STRING in MODE."
(declare (indent 2))
@@ -55,7 +51,7 @@
(funcall ,mode)
(setq-default indent-tabs-mode nil)
(goto-char (point-min))
- (funcall markdown-test-font-lock-function)
+ (font-lock-ensure)
(prog1 ,@body (kill-buffer))))))
(defmacro markdown-test-file-mode (mode file &rest body)
@@ -67,7 +63,7 @@
(insert-file-contents fn)
(funcall ,mode)
(goto-char (point-min))
- (funcall markdown-test-font-lock-function)
+ (font-lock-ensure)
,@body))))
(defmacro markdown-test-string (string &rest body)
@@ -120,7 +116,7 @@ This file is not saved."
(insert-file-contents fn)
(markdown-mode)
(goto-char (point-min))
- (funcall markdown-test-font-lock-function)
+ (font-lock-ensure)
,@body)
(when (buffer-live-p buf)
(set-buffer-modified-p nil)