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

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

Re: use-package :after ??


From: David Masterson
Subject: Re: use-package :after ??
Date: Thu, 11 May 2023 14:24:08 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Masterson <dsmasterson@gmail.com>
>> Cc: help-gnu-emacs@gnu.org
>> Date: Wed, 10 May 2023 20:24:18 -0700
>> 
>> One thing I left out was that org-ac also depends on auto-complete-pcmp
>> making the :after more complicated -- namely does order make a
>> difference in how things should be loaded? 
>
> Depends how? via autoloads or via :after?
>
> 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 may be overthinking this because of my org-ac issue and this looked
like an obvious debugging approach.

-- 
David Masterson



reply via email to

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