[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/setup 9433a3a 5/8: Allow :when-loaded to handle multipl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/setup 9433a3a 5/8: Allow :when-loaded to handle multiple expressions |
Date: |
Thu, 30 Sep 2021 14:57:26 -0400 (EDT) |
branch: externals/setup
commit 9433a3a00f6d36975478d41365ec9428ed176737
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Allow :when-loaded to handle multiple expressions
---
setup.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/setup.el b/setup.el
index 8338770..e3cb36c 100644
--- a/setup.el
+++ b/setup.el
@@ -585,13 +585,16 @@ If PATH does not exist, abort the evaluation."
:debug '(form)
:repeatable t)
-(setup-define :when-loaded #'identity
+(setup-define :when-loaded
+ (lambda (&rest body)
+ (macroexp-progn body))
:documentation "Evaluate BODY after the current feature has been loaded.
Avoid using this macro whenever possible, and
instead choose a more specialized alternative or write one
yourself."
:debug '(setup)
- :after-loaded t)
+ :after-loaded t
+ :indent 0)
(setup-define :without-error-demotion
(lambda ()
- [elpa] externals/setup updated (2e1f7c3 -> 261ed62), ELPA Syncer, 2021/09/30
- [elpa] externals/setup 9591ff2 6/8: Consistently use "local macro" instead of "keyword", ELPA Syncer, 2021/09/30
- [elpa] externals/setup 1b8b968 1/8: Remove lexical-binding check, ELPA Syncer, 2021/09/30
- [elpa] externals/setup d96fb5f 2/8: Indent the first two forms of setup-define, ELPA Syncer, 2021/09/30
- [elpa] externals/setup 2d3b4f2 3/8: Generalize macro processing into setup-modifier-list, ELPA Syncer, 2021/09/30
- [elpa] externals/setup 261ed62 8/8: Remove :without-error-demotion, ELPA Syncer, 2021/09/30
- [elpa] externals/setup f578ff7 7/8: Document if a macro uses deferred evaluation, ELPA Syncer, 2021/09/30
- [elpa] externals/setup 9433a3a 5/8: Allow :when-loaded to handle multiple expressions,
ELPA Syncer <=
- [elpa] externals/setup 7107c78 4/8: Remove examples from package commentary section, ELPA Syncer, 2021/09/30