]> git.eshelyaron.com Git - emacs.git/commit
Fix byte compilation of package built-ins
authordickmao <none>
Sun, 7 Nov 2021 00:28:47 +0000 (01:28 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 00:28:47 +0000 (01:28 +0100)
commit9dfd945a2c2055b1af869a685eb2a667daf4daca
treeccfe862dca7223dafd9921c5743686f623c0e41b
parent55fa6a2655972017c692b515b8c476bb9705747d
Fix byte compilation of package built-ins

* lisp/emacs-lisp/package.el
(package--activate-autoloads-and-load-path):
(package--load-files-for-activation): Remove.
(package--library-stem): New function, because
file-name-sans-extension is insufficient.
(package--reload-previously-loaded): New function.
(package-activate-1): Reload directly.
(package--files-load-history):
(package--list-of-conflicts):
(package--list-loaded-files): Remove
(package-unpack): Adjust call.

* test/lisp/emacs-lisp/package-tests.el (macro-builtin-func): Test.
(macro-builtin-10-and-90): Test.
(package-test-macro-compilation): Test.
(package-test-macro-compilation-gz): Test (bug#49708).
lisp/emacs-lisp/package.el
test/lisp/emacs-lisp/package-resources/macro-builtin-package-1.0/macro-builtin-aux.el [new file with mode: 0644]
test/lisp/emacs-lisp/package-resources/macro-builtin-package-1.0/macro-builtin.el [new file with mode: 0644]
test/lisp/emacs-lisp/package-resources/macro-builtin-package-2.0/macro-builtin-aux.el [new file with mode: 0644]
test/lisp/emacs-lisp/package-resources/macro-builtin-package-2.0/macro-builtin.el [new file with mode: 0644]
test/lisp/emacs-lisp/package-tests.el