emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/sly ab90d7dd53 2/7: Unbreak define-sly-ert-test when used


From: ELPA Syncer
Subject: [nongnu] elpa/sly ab90d7dd53 2/7: Unbreak define-sly-ert-test when used M-x compile-defun
Date: Tue, 25 Apr 2023 18:01:37 -0400 (EDT)

branch: elpa/sly
commit ab90d7dd531a5276cddde4eb4b7c8ee9477079d0
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Unbreak define-sly-ert-test when used M-x compile-defun
    
    * lib/sly-tests.el (sly-tests-auto-tags): Protect against
    file-less compilation.
---
 lib/sly-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sly-tests.el b/lib/sly-tests.el
index 5167794ab6..a6304864b4 100644
--- a/lib/sly-tests.el
+++ b/lib/sly-tests.el
@@ -91,7 +91,7 @@ Exits Emacs when finished. The exit code is the number of 
failed tests."
     (append '(sly)
             (let ((file-name (or load-file-name
                                  byte-compile-current-file)))
-              (if (and file-name
+              (if (and (stringp file-name)
                        (string-match "test/sly-\\(.*\\)\.elc?$" file-name))
                   (list 'contrib (intern (match-string 1 file-name)))
                 '(core)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]