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

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

[elpa] externals/setup e687c4810c: Add new macro :autoload-this


From: ELPA Syncer
Subject: [elpa] externals/setup e687c4810c: Add new macro :autoload-this
Date: Thu, 1 Feb 2024 03:59:01 -0500 (EST)

branch: externals/setup
commit e687c4810c7a2b41b66e166b2bb7366f140808c6
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Add new macro :autoload-this
---
 setup.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/setup.el b/setup.el
index 89f9732ab4..e8960f6458 100644
--- a/setup.el
+++ b/setup.el
@@ -1,6 +1,6 @@
 ;;; setup.el --- Helpful Configuration Macro    -*- lexical-binding: t -*-
 
-;; Copyright (C) 2021, 2022, 2023  Free Software Foundation, Inc.
+;; Copyright (C) 2021, 2022, 2023, 2024  Free Software Foundation, Inc.
 
 ;; Author: Philip Kaludercic <philipk@posteo.net>
 ;; Maintainer: Philip Kaludercic <~pkal/public-inbox@lists.sr.ht>
@@ -545,6 +545,11 @@ The first PACKAGE can be used to deduce the feature 
context."
   :repeatable t
   :shorthand #'cadr)
 
+(setup-define :autoload-this
+  (lambda (&rest args)
+    `(autoload ',(setup-get 'func) ,(format "%s" (setup-get 'feature)) ,@args))
+  :documentation "Explicitly mark the context function to be autoloaded.")
+
 (setup-define :require
   (lambda (feature)
     `(unless (require ',feature nil t)



reply via email to

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