[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes fe4b9fbbd3 03/16: Rename '-ensure-packages' to
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes fe4b9fbbd3 03/16: Rename '-ensure-packages' to -install-selected-packages' |
Date: |
Thu, 10 Nov 2022 14:44:04 -0500 (EST) |
branch: scratch/package-vc-fixes
commit fe4b9fbbd30aaa65fafdd54a956370c4b5aecc22
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Rename '-ensure-packages' to -install-selected-packages'
* doc/emacs/package.texi (Fetching Package Sources): Rename instances.
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Rename
to 'package-vc-install-selected-packages'.
(package-vc-selected-packages): Call renamed function.
---
doc/emacs/package.texi | 6 +++---
lisp/emacs-lisp/package-vc.el | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi
index e8af35e2e3..a559f55cea 100644
--- a/doc/emacs/package.texi
+++ b/doc/emacs/package.texi
@@ -559,7 +559,7 @@ package, without adding it to the package list, use
@code{package-vc-checkout}.
@vindex package-vc-selected-packages
-@findex package-vc-ensure-packages
+@findex package-vc-install-selected-packages
An alternative way to use @code{package-vc-install} is via the
@code{package-vc-selected-packages} user option. This is an alist of
packages to install, where each key is a package name and the value is
@@ -567,8 +567,8 @@ packages to install, where each key is a package name and
the value is
indicating a specific revision or a package specification plist. The
side effect of setting the user option is to install the package, but
the process can also be manually triggered using the function
-@code{package-vc-ensure-packages}. Here is an example of how the user
-option:
+@code{package-vc-install-selected-packages}. Here is an example of
+how the user option:
@example
@group
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 505d258969..8acaf16927 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -118,7 +118,7 @@ the `clone' function."
:version "29.1")
(defvar package-vc-selected-packages) ; pacify byte-compiler
-(defun package-vc-ensure-packages ()
+(defun package-vc-install-selected-packages ()
"Ensure packages specified in `package-vc-selected-packages' are installed."
(pcase-dolist (`(,name . ,spec) package-vc-selected-packages)
(when (stringp name)
@@ -162,7 +162,7 @@ function `package-vc-selected-packages' to apply the
changes."
(:vc-backend symbol)))))
:set (lambda (sym val)
(custom-set-default sym val)
- (package-vc-ensure-packages))
+ (package-vc-install-selected-packages))
:version "29.1")
(defvar package-vc--archive-spec-alist nil
- scratch/package-vc-fixes b19bf809f8 06/16: Mark 'package-vc-update' as interactive, (continued)
- scratch/package-vc-fixes b19bf809f8 06/16: Mark 'package-vc-update' as interactive, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes c7b485da75 07/16: Fix 'package-vc-selected-packages' documentation, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 55af74cd1e 08/16: Fix the docstring for 'package-vc--version', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 95882b0567 09/16: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 6ba14d437b 10/16: Expand 'package-vc--unpack-1' documentation, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 12a7853844 11/16: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 9e4ef24033 15/16: Explain what "refreshing" a source package means, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes a2be7f006a 16/16: Fix type error in package-vc prompt function, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes cb6415a45a 01/16: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 61048ae3fa 02/16: Handle strings as keys in 'package-vc-ensure-packages', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes fe4b9fbbd3 03/16: Rename '-ensure-packages' to -install-selected-packages',
Philip Kaludercic <=
- scratch/package-vc-fixes ed0caa9032 04/16: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 8956d833b3 12/16: Fix generation of documentation for source packages, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 1eeca3607e 13/16: Allow specifying a :lisp-dir for package descriptions, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes cf39a432f9 14/16: Track 'default-directory' while updating source packages, Philip Kaludercic, 2022/11/10