[Top][All Lists]

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

Re: use-package.el -> Emacs core

From: Nicolas Richard
Subject: Re: use-package.el -> Emacs core
Date: Tue, 10 Nov 2015 15:39:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

address@hidden (João Távora) writes:

>>   (unless
>>       (fboundp 'foo-a)
>>     (autoload #'foo-a "foo" nil t))
> According to the `autoload' docstring:
>     If FUNCTION is already defined other than as an autoload,
>     this does nothing and returns nil.

IIRC in the above snippet (from the expansion of a use-package
instance), `fboundp' is mostly used as `autoloadp' to avoid overwriting
existing autloads (I guess autloadp wasn't used because it takes an
OBJECT as argument instead of a symbol).


reply via email to

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