]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence byte-compiler in two tests
authorStefan Kangas <stefan@marxist.se>
Fri, 4 Feb 2022 13:15:33 +0000 (14:15 +0100)
committerStefan Kangas <stefan@marxist.se>
Fri, 4 Feb 2022 13:18:35 +0000 (14:18 +0100)
* 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
test/src/buffer-tests.el

index e10ed04f9d36a11d0896f60d005fa73ac70d0b70..5d7e905cfa33b38b99433cecad1a9bca19566335 100644 (file)
@@ -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
index 31a4b1ac71b29c122d37813fe5a771efaf41d4a3..c1e5d0ebed3932e4b00d91c0b960cf2c5e4c949c 100644 (file)
@@ -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))))