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

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

bug#21563: 24.5; discourage load-hook variables


From: Roland Winkler
Subject: bug#21563: 24.5; discourage load-hook variables
Date: Wed, 15 Jan 2020 18:27:57 -0600

On Wed Jan 15 2020 Stefan Kangas wrote:
> Drew Adams <drew.adams@oracle.com> writes:
> > Setting or changing the explicit hook value has
> > no effect if the library was already loaded, whereas
> > `(with-)eval-after-load' has an immediate effect in 
> > that case.  (Sure, the latter could test in its body
> > whether it's loaded and act conditionally...)
> 
> Good point.  So it seems like load-hooks and eval-after-load are
> slightly different and could both be useful.

What is the benefit of being able to put something into a load-hook
that will be ignored because the feature was already loaded?
Is there a real-world example that can illustrate how this is
useful?





reply via email to

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