[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 01a59a2: Apply Chris Wellons' eval-after-load wo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 01a59a2: Apply Chris Wellons' eval-after-load workaround |
Date: |
Sun, 24 Oct 2021 14:57:10 -0400 (EDT) |
branch: externals/compat
commit 01a59a2192845c50551cb2633bd77970bcaea93c
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Apply Chris Wellons' eval-after-load workaround
---
compat-macs.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/compat-macs.el b/compat-macs.el
index a479bff..9545c8c 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -102,10 +102,8 @@ TYPE is used to set the symbol property `compat-type' for
NAME."
(put ',realname 'compat-version ,version)
,(funcall def-fn realname version)
,(if feature
- ;; Warning: This might be able throw an error if the code
- ;; is not byte compiled, as explained in:
- ;; https://nullprogram.com/blog/2018/02/22/.
- `(eval-after-load ',feature (lambda () ,body))
+ ;; See https://nullprogram.com/blog/2018/02/22/:
+ `(eval-after-load 'feature `(funcall ,(lambda () ,@body)))
body))))
(defun compat-common-fdefine (type name arglist docstring rest)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/compat 01a59a2: Apply Chris Wellons' eval-after-load workaround,
ELPA Syncer <=