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

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

[elpa] externals/compat 02bbef139c 04/10: Require sub-features instead o


From: ELPA Syncer
Subject: [elpa] externals/compat 02bbef139c 04/10: Require sub-features instead of loading them
Date: Sun, 17 Jul 2022 17:57:25 -0400 (EDT)

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

    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.
---
 compat.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/compat.el b/compat.el
index 9f943b4766..6113d445ff 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



reply via email to

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