Closed ksqsf closed 2 years ago
It's not necessary to wrap autoload on function, you can use similar technology like lazy-load (https://github.com/manateelazycat/lazy-load) to load function dynamically.
Autoloads are required when the package is used as a package.el-flavor package. Package.el will generate "blink-search-autoloads.el" from autoload annotations, and only this file will be loaded on package initialization, to speed up Emacs startup. (There is a separate feature called package-quickstart
which also needs correct autoloads.) If there are no autoloads, the user will not be able to call any blink-search command if he uses package-vc-install
.
I added autoloads blindlessly just now. In retrospect, some are indeed unnecessary. I will update the PR in minutes.
package-vc is the new way to install external packages introduced in emacs 29.
this PR consists of three improvements to make blink-search compatible with package-vc: