diff options
| author | Naoya Yamashita <conao3@gmail.com> | 2026-03-02 15:52:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 15:52:08 +0900 |
| commit | b49e68613b8efba89c702141f49ad9b4460a7204 (patch) | |
| tree | 872d723fd50763a7c9d1d7779c69212fde0cb070 | |
| parent | 69c9b057cdeee560450c1d04a9a058235ecff0f7 (diff) | |
| parent | 1b94da0cbb8d6c9f0d5bc7fea02f1e85eceed1ff (diff) | |
Merge pull request #552 from uwabami/masterexternals/leaf
leaf-handler-vc: Add package to package-selected-packages
| -rw-r--r-- | leaf.el | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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." |
