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

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

Re: package-installed-p issue.


From: Stefan Monnier
Subject: Re: package-installed-p issue.
Date: Sat, 09 Jan 2021 11:53:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> (unless (fboundp 'package-installed-p)
>     (require 'package))

You can replace that with just

    (require 'package)

> (unless (package-installed-p 'use-package)
>   ...
> )
>
> My question is: Shouldn't package-installed-p be an autoload?

Hmm... maybe it should.  Tho

    (fboundp 'use-package)

might do the trick as well.

BTW what you do within the "..." tho (I can guess that there's
(package-install 'use-package) in there, but I wonder if there's much
more setup code in there).

> Is there a reason why it is not an autoload?

No strong one, no.  It's basically that the need hadn't come up.


        Stefan




reply via email to

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