[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: perform autoloading when docs is missing from autoload object
From: |
Lars Ingebrigtsen |
Subject: |
Re: Patch: perform autoloading when docs is missing from autoload object |
Date: |
Sat, 18 Sep 2021 15:21:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Arthur Miller <arthur.miller@live.com> writes:
> I wanted to later switch to just fetch the docs instead of performing
> load. Loading docs can be done without evaluating the code. It might be a
> better solution anyway?
If that's possible, that would be preferable, but as you say:
> By the way, I had thoughts about loading the library vs just docs. I reason,
> that, if I look at some symbol docs via describe-* functions, I am
> probably already using that library/package, or am about to use it, so it
> probably is going to be loaded anyway. At least in many cases, not always of
> course.
It is quite likely that you want to use the library if you've looked up
the symbol in a *Help* buffer, so why not, indeed, just load it at that
point? If loading the library also helps with some other things --
highlighting `package-symbol's correctly in the doc string, for
instance.
So I think I'd be fine with adding the proposed functionality. If there
are people that don't want this, we can add a user option to switch it off.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Re: Patch: perform autoloading when docs is missing from autoload object, Lars Ingebrigtsen, 2021/09/16