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

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

[elpa] externals/compat 03a4cdd528 05/10: Prepend ".el" to load-suffixes


From: ELPA Syncer
Subject: [elpa] externals/compat 03a4cdd528 05/10: Prepend ".el" to load-suffixes during testing
Date: Sun, 17 Jul 2022 17:57:25 -0400 (EDT)

branch: externals/compat
commit 03a4cdd52872e18076ba6ad1553be3cfbb087f42
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Prepend ".el" to load-suffixes during testing
    
    This is necessary to avoid loading potentially byte-compiled files
    using a generator function other than `compat--generate-verbose' (that
    is necessary for testing, to ensure all the necessary meta-data and a
    backup definition is provided).
---
 compat.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat.el b/compat.el
index 6113d445ff..c588766d1f 100644
--- a/compat.el
+++ b/compat.el
@@ -51,7 +51,7 @@
 (let* ((compat--inhibit-prefixed (not (bound-and-true-p compat-testing)))
        (load-suffixes
         (if (bound-and-true-p compat-testing)
-            '(".el" ".elc")
+            (cons ".el" (remove ".el" load-suffixes))
           load-suffixes))
        (features (copy-sequence features)))
   (ignore features)                     ;for the byte compiler



reply via email to

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