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: Philip Kaludercic
Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS
Date: Sat, 19 Feb 2022 18:35:10 +0000

Stefan Monnier <monnier@iro.umontreal.ca> writes:

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

In that case, I would suggest considering my site-lisp.el proposal from
last year again.  The reason I dropped it was because it was implied
that the functionality should be merged into package.el, but it seems
that this wouldn't be the right way to go about it either.

-- 
        Philip Kaludercic



reply via email to

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