GNU bug report logs - #77609
How to add multiple functions to one hook with :hook in use-package?

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Mon, 7 Apr 2025 13:46:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #31 received at 77609-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: John Wiegley <johnw <at> gnu.org>
Cc: 77609-done <at> debbugs.gnu.org, rrt <at> sc3d.org
Subject: Re: bug#77609: How to add multiple functions to one hook with :hook
 in use-package?
Date: Sat, 24 May 2025 12:58:10 +0300
> From: John Wiegley <johnw <at> gnu.org>
> Cc: 77609 <at> debbugs.gnu.org,  rrt <at> sc3d.org
> Date: Wed, 21 May 2025 23:20:32 -0700
> 
> >>>>> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Ping! How can we make any further progress here?
> 
> So, I dug into ‘use-package-normalize/:hook’ to see how hard it would be and…
> it’s unreasonably hard. Accepting a list of functions in this way is just not
> something the code was designed to do in its current form.
> 
> So rather than risk breaking lots of things, I think the user just has to
> expand:
> 
>   :hook (foo a b)
>   :hook (foo . (a b))
> 
> into
> 
>   :hook
>   (foo . a)
>   (foo . b)

Thanks, I've now updated the manual with this information, and I'm
therefore closing this bug.




This bug report was last modified 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.