emacs-devel
[Top][All Lists]
Advanced

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

Re: use-package.el -> Emacs core


From: João Távora
Subject: Re: use-package.el -> Emacs core
Date: Tue, 10 Nov 2015 14:48:30 +0000
User-agent: Gnus/5, (Gnus v5.13) Emacs/25.0.50 (windows-nt)

Nicolas Richard <address@hidden> writes:

> 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).

Is this useful or desirable? Doesn't this mean that making a correction
to a `use-package' instantiation and re-evaluating it will silently
produce a noop?

In the same vein, does `use-package' undo autoloads (or keybindings or
any other thing) when the directive's value changes?

João






reply via email to

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