From 60cfb383ea2b22b33b4afaed743b1e663e72cfdc Mon Sep 17 00:00:00 2001 From: Lele Gaifax Date: Sun, 9 Jan 2022 17:17:47 +0100 Subject: [PATCH] fix: actually forward the `select' param to doom/bump-package-at-point Also, rectify the docstring for `doom/bump-packages-in-buffer', that was an exact replica of the actual workhorse, `doom/bump-package-at-point'. --- core/autoload/packages.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/autoload/packages.el b/core/autoload/packages.el index 0689765f0..36d53a05f 100644 --- a/core/autoload/packages.el +++ b/core/autoload/packages.el @@ -119,8 +119,9 @@ Grabs the latest commit id of the package using 'git'." ;;;###autoload (defun doom/bump-packages-in-buffer (&optional select) - "Inserts or updates a `:pin' for the `package!' statement at point. -Grabs the latest commit id of the package using 'git'." + "Inserts or updates a `:pin' to all `package!' statements in current buffer. +If SELECT (prefix arg) is non-nil, prompt you to choose a specific commit for +each package." (interactive "P") (save-excursion (goto-char (point-min)) @@ -134,7 +135,7 @@ Grabs the latest commit id of the package using 'git'." (and (goto-char (match-beginning 0)) (not (plist-member (sexp-at-point) :pin)))))) (condition-case e - (push (doom/bump-package-at-point) packages) + (push (doom/bump-package-at-point select) packages) (user-error (message "%s" (error-message-string e)))))) (if packages (message "Updated %d packages\n- %s" (length packages) (string-join packages "\n- "))