help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: use-package :after ??


From: Eli Zaretskii
Subject: Re: use-package :after ??
Date: Fri, 12 May 2023 08:59:10 +0300

> From: David Masterson <dsmasterson@gmail.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Thu, 11 May 2023 14:24:08 -0700
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > And why does it make thing more complicated?  If package FOO should be
> > loaded after BAR, and BAR should be loaded after BAZ, then the order
> > I'd expect should be: BAZ, then BAR, then FOO.  Right?
> 
> Yes. Will that be handled properly by the following (with global
> deferred loading)?
> 
> (use-package foo :after bar
>  :config (foo-setup)
>  )
> (use-package bar :after baz
>  # :demand t
> )
> (use-package baz)
> 
> In particular, use-package will ensure foo-setup is called after foo is
> loaded, right? If I uncommented the :demand, should/would that make a
> difference?

I don't think it would make a difference, but why on earth are you
using :demand there?  It makes no sense to me.

In any case, if there's something unclear here, the problem might be
with the description of :demand, not with :after -- the node "Forcing
loading" says :demand is overridden by :defer, but says nothing about
:after.



reply via email to

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