summaryrefslogtreecommitdiff
path: root/leaf.el
diff options
context:
space:
mode:
authorNaoya Yamashita <conao3@gmail.com>2026-03-02 15:52:08 +0900
committerGitHub <noreply@github.com>2026-03-02 15:52:08 +0900
commitb49e68613b8efba89c702141f49ad9b4460a7204 (patch)
tree872d723fd50763a7c9d1d7779c69212fde0cb070 /leaf.el
parent69c9b057cdeee560450c1d04a9a058235ecff0f7 (diff)
parent1b94da0cbb8d6c9f0d5bc7fea02f1e85eceed1ff (diff)
Merge pull request #552 from uwabami/masterexternals/leaf
leaf-handler-vc: Add package to package-selected-packages
Diffstat (limited to 'leaf.el')
-rw-r--r--leaf.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/leaf.el b/leaf.el
index b6812fd..0f33aef 100644
--- a/leaf.el
+++ b/leaf.el
@@ -1119,10 +1119,12 @@ SPEC is a list of the form (PKG OPTIONS REVISION)"
(let ((pkg (nth 0 spec))
(opts (nth 1 spec))
(rev (nth 2 spec)))
- `(unless (package-installed-p ',pkg)
- (package-vc-install
- ',(if opts `(,pkg ,@opts) pkg)
- ,rev))))
+ `(progn
+ (leaf-safe-push ',pkg package-selected-packages 'no-dup)
+ (unless (package-installed-p ',pkg)
+ (package-vc-install
+ ',(if opts `(,pkg ,@opts) pkg)
+ ,rev)))))
(defmacro leaf-handler-auth (name sym store)
"Handler auth-* to set SYM of NAME from STORE."