emacs-devel
[Top][All Lists]
Advanced

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

Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installe


From: Stefan Monnier
Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS
Date: Sat, 19 Feb 2022 11:28:52 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> --8<---------------cut here---------------start------------->8---
> (eval-and-compile                       ;for flymake
>   (require 'autoload)
>   (let* ((backup-inhibited t)
>          (dir (locate-user-emacs-file "site-lisp"))
>          (load (expand-file-name "autoload.el" dir)))
>     (dolist (dir (directory-files dir t "^[^.]"))
>       (when (file-directory-p dir)
>         (add-to-list 'load-path dir)
>         (make-directory-autoloads dir load)
>         (byte-recompile-directory dir)))
>     (add-to-list 'load-path dir)
>     (load load nil t)
>     (kill-buffer (find-buffer-visiting load))))
> --8<---------------cut here---------------end--------------->8---

I think we could aim to make it easier for users to do this kind of
thing, but I don't think we want to impose the cost of
`make-directory-autoloads` and `byte-recompile-directory` at every startup.


        Stefan




reply via email to

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