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

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

[elpa] externals/compat cdc842459e 03/10: Respect compat-testing during


From: ELPA Syncer
Subject: [elpa] externals/compat cdc842459e 03/10: Respect compat-testing during loading
Date: Sun, 17 Jul 2022 17:57:25 -0400 (EDT)

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

    Respect compat-testing during loading
---
 compat.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/compat.el b/compat.el
index b8e5e93898..9f943b4766 100644
--- a/compat.el
+++ b/compat.el
@@ -48,8 +48,12 @@
 ;; and do nothing when loading each sub-feature manually.
 
 (defvar compat--inhibit-prefixed)
-(let* ((features (copy-sequence features))
-       (compat--inhibit-prefixed t))
+(let* ((compat--inhibit-prefixed (not (bound-and-true-p compat-testing)))
+       (load-suffixes
+        (if (bound-and-true-p compat-testing)
+            '(".el" ".elc")
+          load-suffixes))
+       (features (copy-sequence features)))
   (ignore features)                     ;for the byte compiler
   (load "compat-24")
   (load "compat-25")



reply via email to

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