diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2019-12-06 15:12:32 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-02-27 16:59:07 -0500 |
commit | 9659459f0640ebfd2f662c26e939f38b0a4abf2b (patch) | |
tree | a5e329afe89cbb52c32c6291ba9c1eb107135e47 /gnu/packages/aux-files/emacs | |
parent | 4714d0fc1a96eb6d421b64b0b585fe8043dcd07b (diff) |
emacs-build-system: Byte compile the autoload files.
* guix/build/emacs-build-system.scm (enable-autoloads-compilation)
(validate-compiled-autoloads): Add procedures.
(%standard-phases): Register the new procedures.
* gnu/packages/aux-files/emacs/guix-emacs.el (guix-emacs-find-autoloads):
Remove duplicates in the list of autoload files found.
* guix/build/emacs-utils.scm (expr->string): Add procedure.
(emacs-batch-eval, emacs-batch-edit-file): Use it.
Diffstat (limited to 'gnu/packages/aux-files/emacs')
-rw-r--r-- | gnu/packages/aux-files/emacs/guix-emacs.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/aux-files/emacs/guix-emacs.el b/gnu/packages/aux-files/emacs/guix-emacs.el index 05fc9709b6..25a87ee52d 100644 --- a/gnu/packages/aux-files/emacs/guix-emacs.el +++ b/gnu/packages/aux-files/emacs/guix-emacs.el @@ -35,8 +35,9 @@ "Return a list of Emacs 'autoloads' files in DIRECTORY. The files in the list do not have extensions (.el, .elc)." ;; `directory-files' doesn't honor group in regexp. - (mapcar #'file-name-sans-extension - (directory-files directory 'full-name guix-emacs-autoloads-regexp))) + (delete-dups (mapcar #'file-name-sans-extension + (directory-files directory 'full-name + guix-emacs-autoloads-regexp)))) ;;;###autoload (defun guix-emacs-autoload-packages () |