1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 10:50:49 -08:00

Update docstring, installation prompt message

This commit is contained in:
Radon Rosborough 2017-03-18 20:00:53 -07:00
parent ecc5fddda4
commit b2e674de0a

View file

@ -221,16 +221,16 @@ with the appropriate value."
(defcustom use-package-pre-ensure-function 'ignore (defcustom use-package-pre-ensure-function 'ignore
"Function that is called upon installation deferral. "Function that is called upon installation deferral.
It is called immediately with the same arguments as It is called immediately with the first three arguments that
`use-package-ensure-function', but only if installation has been would be passed to `use-package-ensure-function' (the context
deferred. It is intended for package managers other than keyword is omitted), but only if installation has been deferred.
package.el which might want to activate the autoloads of a It is intended for package managers other than package.el which
package immediately, if it's installed, but otherwise defer might want to activate the autoloads of a package immediately, if
installation until later (if `:defer-install' is specified). The it's installed, but otherwise defer installation until later (if
reason it is set to `ignore' by default is that package.el `:defer-install' is specified). The reason it is set to `ignore'
activates the autoloads for all known packages at initialization by default is that package.el activates the autoloads for all
time, rather than one by one when the packages are actually known packages at initialization time, rather than one by one
requested." when the packages are actually requested."
:type '(choice (const :tag "None" ignore) :type '(choice (const :tag "None" ignore)
(function :tag "Custom")) (function :tag "Custom"))
:group 'use-package) :group 'use-package)
@ -695,7 +695,7 @@ If the package is installed, its entry is removed from
;; Contexts in which the confirmation prompt is ;; Contexts in which the confirmation prompt is
;; bypassed. ;; bypassed.
(member context '(:byte-compile :ensure :config)) (member context '(:byte-compile :ensure :config))
(y-or-n-p (format "Install package %S?" name)))) (y-or-n-p (format "Install package %S?" package))))
(progn (progn
(when (assoc package (bound-and-true-p package-pinned-packages)) (when (assoc package (bound-and-true-p package-pinned-packages))
(package-read-all-archive-contents)) (package-read-all-archive-contents))