[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 702a5c6feb: Silence byte-compiler in two tests
From: |
Stefan Kangas |
Subject: |
master 702a5c6feb: Silence byte-compiler in two tests |
Date: |
Fri, 4 Feb 2022 08:18:48 -0500 (EST) |
branch: master
commit 702a5c6feb7a03cf76ec5a3189c9ae0fbcea6d5e
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Silence byte-compiler in two tests
* test/lisp/electric-tests.el (electric-pair-define-test-form):
* test/src/buffer-tests.el (buffer-tests--make-test-name): Silence
byte-compiler by defining defuns also at run time.
---
test/lisp/electric-tests.el | 2 +-
test/src/buffer-tests.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el
index e10ed04f9d..5d7e905cfa 100644
--- a/test/lisp/electric-tests.el
+++ b/test/lisp/electric-tests.el
@@ -79,7 +79,7 @@
(should (equal (point)
expected-point))))
-(eval-when-compile
+(eval-and-compile
(defun electric-pair-define-test-form (name fixture
char
pos
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el
index 31a4b1ac71..c1e5d0ebed 100644
--- a/test/src/buffer-tests.el
+++ b/test/src/buffer-tests.el
@@ -101,7 +101,7 @@ with parameters from the *Messages* buffer modification."
;; | Overlay test setup
;; +==========================================================================+
-(eval-when-compile
+(eval-and-compile
(defun buffer-tests--make-test-name (fn x y)
(intern (format "buffer-tests--%s-%s-%s" fn x y))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 702a5c6feb: Silence byte-compiler in two tests,
Stefan Kangas <=