diff options
author | Steven Allen <steven@stebalien.com> | 2023-05-16 16:07:36 -0700 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-06-03 10:27:46 +0300 |
commit | 8d6dd1682e2d42a813f9649e70da7aa7d6a95021 (patch) | |
tree | eb50cb66a88dc63af10031e6c3d230c45d9048ee /lisp/use-package | |
parent | f947a0219bb6e43966e0e4e61ad6a15b0ed13e18 (diff) | |
download | emacs-8d6dd1682e2d42a813f9649e70da7aa7d6a95021.tar.gz |
Fix use-package :vc keyword when byte-compiled
* lisp/use-package/use-package-core.el (use-package-handler/:vc):
Return the new 'body'. Otherwise, the entire package declaration gets
dropped when byte-compiling.
* test/lisp/use-package/use-package-tests.el
(use-package-test-handler/:vc-6): test it.
Diffstat (limited to 'lisp/use-package')
-rw-r--r-- | lisp/use-package/use-package-core.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 0d99e270a3f..e0e16134ed3 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -1619,7 +1619,8 @@ Also see the Info node `(use-package) Creating an extension'." ;; See `use-package-handler/:ensure' for an explanation. (if (bound-and-true-p byte-compile-current-file) (funcall #'use-package-vc-install arg local-path) ; compile time - (push `(use-package-vc-install ',arg ,local-path) body)))) ; runtime + (push `(use-package-vc-install ',arg ,local-path) body)) ; runtime + body)) (defun use-package-normalize--vc-arg (arg) "Normalize possible arguments to the `:vc' keyword. |