[Top][All Lists]

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

Re: Elpa packages and macro dependencies.

From: Stefan Monnier
Subject: Re: Elpa packages and macro dependencies.
Date: Mon, 20 Oct 2014 15:04:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> (with-demoted-errors
>   (load (expand-file-name autoload-name pkg-dir) nil t)
>   ;; Call `load' on all files in `pkg-dir' which correspond to
>   ;; provided features. Skip autoloads file since we already
>   ;; evaluated it above.
>   (mapcar (lambda (file) (load (expand-file-name file pkg-dir) nil t))
>           ;; The autoloads file is usually not a feature, but better stay 
> safe.
>           (remove autoload-name (package-list-loaded-files pkg-dir))))

Pretty hackish, but it might work.
We might also want to force the `autoload' calls in autoload-name to
replace the existing definitions with autoloads.


reply via email to

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