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

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

[elpa] externals/setup e8a5ac7 07/19: Rename :hook argument to function


From: Stefan Monnier
Subject: [elpa] externals/setup e8a5ac7 07/19: Rename :hook argument to function
Date: Mon, 15 Mar 2021 17:26:27 -0400 (EDT)

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

    Rename :hook argument to function
---
 setup.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.el b/setup.el
index 9973212..f12a648 100644
--- a/setup.el
+++ b/setup.el
@@ -314,8 +314,8 @@ If not given, it is assumed nothing is evaluated."
   :repeatable 2)
 
 (setup-define :hook
-  (lambda (hook)
-    `(add-hook setup-hook #',hook))
+  (lambda (function)
+    `(add-hook setup-hook #',function))
   :documentation "Add FUNCTION to current hook."
   :debug '(form [&or [symbolp sexp] form])
   :repeatable 1)



reply via email to

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