aboutsummaryrefslogtreecommitdiff
path: root/compat.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-07-17 21:03:19 +0200
committerPhilip Kaludercic <philipk@posteo.net>2022-07-17 21:03:19 +0200
commit02bbef139c4ec5af58c53c03128df518e9bf280f (patch)
treef6470e7b0999d21915a3e009cb13bae2373df26b /compat.el
parentcdc842459ecb532d7ec3112591f52cb62b048909 (diff)
Require sub-features instead of loading them
That way we can avoid loading a feature in case it has already been loaded previously (and would be contained in the copied value of `feature'), which should result in a marginal speed improvement.
Diffstat (limited to 'compat.el')
-rw-r--r--compat.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/compat.el b/compat.el
index 9f943b4..6113d44 100644
--- a/compat.el
+++ b/compat.el
@@ -55,11 +55,11 @@
load-suffixes))
(features (copy-sequence features)))
(ignore features) ;for the byte compiler
- (load "compat-24")
- (load "compat-25")
- (load "compat-26")
- (load "compat-27")
- (load "compat-28"))
+ (require 'compat-24)
+ (require 'compat-25)
+ (require 'compat-26)
+ (require 'compat-27)
+ (require 'compat-28))
(provide 'compat)
;;; compat.el ends here