[Top][All Lists]

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

Re: emacs-29 acd462b0306: ; Improve the use-package manual

From: John Wiegley
Subject: Re: emacs-29 acd462b0306: ; Improve the use-package manual
Date: Mon, 12 Dec 2022 11:37:01 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)

>>>>> Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> It would also be nice to have user options like
>> 'use-package-always-defer' enabled by default, but that will certainly
>> break a number of configurations.

> Those users can always (setq use-package-always-defer nil) to recover the
> old behavior.

This should *not* be enabled by default.

Basically, `:demand` and `:defer` are considered overrides, which basically
short-circuit the intelligent in use-package that figures out when a deferred
load would offer the most benefit. The `-always-` variables cause these
overrides to be applied globally, but this is almost always a bad choice,
since it means giving up one of the reasons why use-package exists in the
first place: to figure out when things should be deferred, but not deferring
them when it's unhelpful.

John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2

reply via email to

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