1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Add missing :version tags in use-package

* lisp/use-package/use-package-core.el (use-package-keywords)
(use-package-deferring-keywords, use-package-ignore-unknown-keywords)
(use-package-use-theme, use-package-verbose)
(use-package-check-before-init, use-package-always-defer)
(use-package-always-demand, use-package-defaults)
(use-package-merge-key-alist, use-package-hook-name-suffix)
(use-package-minimum-reported-time, use-package-inject-hooks)
(use-package-expand-minimally, use-package-form-regexp-eval)
(use-package-enable-imenu-support, use-package-compute-statistics):
* lisp/use-package/use-package-ensure.el (use-package-always-ensure)
(use-package-always-pin, use-package-ensure-function): Add missing
:version tags.
This commit is contained in:
Stefan Kangas 2024-08-20 20:11:08 +02:00
parent 3f019167b8
commit 9d7151c0ff
2 changed files with 40 additions and 20 deletions

View File

@ -114,7 +114,8 @@ Note that `:disabled' is special in this list, as it causes
nothing at all to happen, even if the rest of the `use-package'
declaration is incorrect."
:type '(repeat symbol)
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-deferring-keywords
'(:bind-keymap
@ -128,21 +129,24 @@ function symbols that can be autoloaded from the module; whereas
the default keywords provided here always defer loading unless
otherwise requested."
:type '(repeat symbol)
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-ignore-unknown-keywords nil
"If non-nil, warn instead of signaling error for unknown keywords.
The unknown keyword and its associated arguments will be ignored
in the `use-package' expansion."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-use-theme t
"If non-nil, use a custom theme to avoid saving :custom
variables twice (once in the Custom file, once in the use-package
call)."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-verbose nil
"Whether to report about loading and configuration details.
@ -154,25 +158,29 @@ then the expanded macros do their job silently."
(const :tag "Quiet" nil)
(const :tag "Verbose" t)
(const :tag "Debug" debug))
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-check-before-init nil
"If non-nil, check that package exists before executing its `:init' block.
This check is performed by calling `locate-library'."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-always-defer nil
"If non-nil, assume `:defer t' unless `:demand' is used.
See also `use-package-defaults', which uses this value."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-always-demand nil
"If non-nil, assume `:demand t' unless `:defer' is used.
See also `use-package-defaults', which uses this value."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-defaults
'(;; this '(t) has special meaning; see `use-package-handler/:config'
@ -214,7 +222,8 @@ attempted."
(list (symbol :tag "Keyword")
(choice :tag "Default value" sexp function)
(choice :tag "Enable if non-nil" sexp function)))
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-merge-key-alist
'((:if . (lambda (new old) `(and ,new ,old)))
@ -238,21 +247,24 @@ handler is called only once."
use-package-keywords)
(const :tag "Any" t))
function))
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-hook-name-suffix "-hook"
"Text append to the name of hooks mentioned by :hook.
Set to nil if you don't want this to happen; it's only a
convenience."
:type '(choice string (const :tag "No suffix" nil))
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-minimum-reported-time 0.1
"Minimal load time that will be reported.
Note that `use-package-verbose' has to be set to a non-nil value
for anything to be reported at all."
:type 'number
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-inject-hooks nil
"If non-nil, add hooks to the `:init' and `:config' sections.
@ -278,7 +290,8 @@ user-supplied configuration is not evaluated, so be certain to
return t if you only wish to add behavior to what the user had
specified."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-expand-minimally nil
"If non-nil, make the expanded code as minimal as possible.
@ -293,7 +306,8 @@ configuration works, it will make the byte-compiled file as
minimal as possible. It can also help with reading macro-expanded
definitions, to understand the main intent of what's happening."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-form-regexp-eval
`(concat ,(eval-when-compile
@ -306,7 +320,8 @@ definitions, to understand the main intent of what's happening."
This is used by `use-package-jump-to-package-form' and
`use-package-enable-imenu-support'."
:type 'sexp
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-enable-imenu-support nil
"If non-nil, cause imenu to see `use-package' declarations.
@ -325,7 +340,8 @@ Must be set before loading `use-package'."
(remove (list "Packages" ,use-package-form-regexp-eval 2)
lisp-imenu-generic-expression))))
(set-default sym value))
:group 'use-package)
:group 'use-package
:version "29.1")
;; Redundant in Emacs 26 or later, which already highlights macro names.
(defconst use-package-font-lock-keywords
@ -344,7 +360,8 @@ if this option is enabled, you must require `use-package' in your
user init file at loadup time, or you will see errors concerning
undefined variables."
:type 'boolean
:group 'use-package)
:group 'use-package
:version "29.1")
(defcustom use-package-vc-prefer-newest nil
"Prefer the newest commit over the latest release.

View File

@ -46,13 +46,15 @@
"Treat every package as though it had specified using `:ensure SEXP'.
See also `use-package-defaults', which uses this value."
:type 'sexp
:group 'use-package-ensure)
:group 'use-package-ensure
:version "29.1")
(defcustom use-package-always-pin nil
"Treat every package as though it had specified using `:pin SYM'.
See also `use-package-defaults', which uses this value."
:type 'symbol
:group 'use-package-ensure)
:group 'use-package-ensure
:version "29.1")
(defcustom use-package-ensure-function 'use-package-ensure-elpa
"Function that ensures a package is installed.
@ -70,7 +72,8 @@ This function should return non-nil if the package is installed.
The default value uses package.el to install the package."
:type '(choice (const :tag "package.el" use-package-ensure-elpa)
(function :tag "Custom"))
:group 'use-package-ensure)
:group 'use-package-ensure
:version "29.1")
;;;; :pin