aboutsummaryrefslogtreecommitdiff
path: root/compat.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-07-17 21:16:47 +0200
committerPhilip Kaludercic <philipk@posteo.net>2022-07-17 21:16:47 +0200
commit03a4cdd52872e18076ba6ad1553be3cfbb087f42 (patch)
treec0e1fbf164833b098e55ba1b36d2a6dcb08f212e /compat.el
parent02bbef139c4ec5af58c53c03128df518e9bf280f (diff)
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).
Diffstat (limited to 'compat.el')
-rw-r--r--compat.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.el b/compat.el
index 6113d44..c588766 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