; * lisp/which-key.el: Fix ':package-version' (bug#73072).

This commit is contained in:
Eli Zaretskii 2024-09-06 19:02:50 +03:00
parent 54071b9cef
commit 4d6fadb8d2

View file

@ -70,7 +70,7 @@ This makes it possible to shorten the delay for subsequent popups
in the same key sequence. The default is for this value to be in the same key sequence. The default is for this value to be
nil, which disables this behavior." nil, which disables this behavior."
:type '(choice float (const :tag "Disabled" nil)) :type '(choice float (const :tag "Disabled" nil))
:package-version "1.0" :version "30.1") :package-version '(which-key "1.0") :version "30.1")
(defcustom which-key-echo-keystrokes (if (and echo-keystrokes (defcustom which-key-echo-keystrokes (if (and echo-keystrokes
(> (+ echo-keystrokes 0.01) (> (+ echo-keystrokes 0.01)
@ -83,7 +83,7 @@ This only applies if `which-key-popup-type' is minibuffer or
`which-key-idle-delay' or else the keystroke echo will erase the `which-key-idle-delay' or else the keystroke echo will erase the
which-key popup." which-key popup."
:type 'float :type 'float
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-max-description-length 27 (defcustom which-key-max-description-length 27
"Truncate the description of keys to this length. "Truncate the description of keys to this length.
@ -96,17 +96,17 @@ before. Truncation is done using `which-key-ellipsis'."
(integer :tag "Width in characters") (integer :tag "Width in characters")
(float :tag "Use fraction of available width") (float :tag "Use fraction of available width")
function) function)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-min-column-description-width 0 (defcustom which-key-min-column-description-width 0
"Every column should at least have this width." "Every column should at least have this width."
:type 'natnum :type 'natnum
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-add-column-padding 0 (defcustom which-key-add-column-padding 0
"Additional spaces to add to the left of each key column." "Additional spaces to add to the left of each key column."
:type 'integer :type 'integer
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-unicode-correction 3 (defcustom which-key-unicode-correction 3
"Correction for wide unicode characters. "Correction for wide unicode characters.
@ -122,7 +122,7 @@ additional ASCII character in the which-key buffer. Increase this
number if you are seeing characters get cutoff on the right side number if you are seeing characters get cutoff on the right side
of the which-key popup." of the which-key popup."
:type 'integer :type 'integer
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-dont-use-unicode t (defcustom which-key-dont-use-unicode t
"If non-nil, don't use any unicode characters in default setup. "If non-nil, don't use any unicode characters in default setup.
@ -136,7 +136,7 @@ For affected settings, see `which-key-replacement-alist', `which-key-ellipsis'
(custom-reevaluate-setting sym)))) (custom-reevaluate-setting sym))))
:initialize #'custom-initialize-changed :initialize #'custom-initialize-changed
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-separator (defcustom which-key-separator
(if which-key-dont-use-unicode " : " "") (if which-key-dont-use-unicode " : " "")
@ -145,7 +145,7 @@ Default is \" → \", unless `which-key-dont-use-unicode' is non
nil, in which case the default is \" : \"." nil, in which case the default is \" : \"."
:type 'string :type 'string
:set-after '(which-key-dont-use-unicode) :set-after '(which-key-dont-use-unicode)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-ellipsis (defcustom which-key-ellipsis
(if which-key-dont-use-unicode ".." "") (if which-key-dont-use-unicode ".." "")
@ -155,20 +155,20 @@ in which case the default is \"..\". This can also be the empty
string to truncate without using any ellipsis." string to truncate without using any ellipsis."
:type 'string :type 'string
:set-after '(which-key-dont-use-unicode) :set-after '(which-key-dont-use-unicode)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-prefix-prefix "+" (defcustom which-key-prefix-prefix "+"
"Prefix string to indicate a key bound to a keymap. "Prefix string to indicate a key bound to a keymap.
Default is \"+\"." Default is \"+\"."
:type 'string :type 'string
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-compute-remaps nil (defcustom which-key-compute-remaps nil
"If non-nil, show remapped commands. "If non-nil, show remapped commands.
This applies to commands that have been remapped given the This applies to commands that have been remapped given the
currently active keymaps." currently active keymaps."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-replacement-alist (defcustom which-key-replacement-alist
`(((nil . "which-key-show-next-page-no-cycle") . (nil . "wk next pg")) `(((nil . "which-key-show-next-page-no-cycle") . (nil . "wk next pg"))
@ -211,7 +211,7 @@ non-nil value."
(choice regexp (const nil))) (choice regexp (const nil)))
:value-type (cons (choice string (const nil)) :value-type (cons (choice string (const nil))
(choice string (const nil)))) (choice string (const nil))))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-allow-multiple-replacements nil (defcustom which-key-allow-multiple-replacements nil
"Allow a key binding to be modified by multiple elements. "Allow a key binding to be modified by multiple elements.
@ -220,7 +220,7 @@ patterns in `which-key-replacement-alist'. When nil, only the
first match is used to perform replacements from first match is used to perform replacements from
`which-key-replacement-alist'." `which-key-replacement-alist'."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-docstrings nil (defcustom which-key-show-docstrings nil
"If non-nil, show each command's docstring in the which-key popup. "If non-nil, show each command's docstring in the which-key popup.
@ -233,7 +233,7 @@ you use this feature."
(const :tag "Do not show docstrings" nil) (const :tag "Do not show docstrings" nil)
(const :tag "Add docstring to command names" t) (const :tag "Add docstring to command names" t)
(const :tag "Replace command name with docstring" docstring-only)) (const :tag "Replace command name with docstring" docstring-only))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-extra-keymaps '(key-translation-map) (defcustom which-key-extra-keymaps '(key-translation-map)
"List of extra keymaps to show entries from. "List of extra keymaps to show entries from.
@ -242,7 +242,7 @@ The default is to check `key-translation-map', which contains the
:type '(choice (list :tag "Translation map" (const key-translation-map)) :type '(choice (list :tag "Translation map" (const key-translation-map))
(const :tag "None" nil) (const :tag "None" nil)
(repeat :tag "Custom" symbol)) (repeat :tag "Custom" symbol))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-highlighted-command-list '() (defcustom which-key-highlighted-command-list '()
"Rules used to highlight certain commands. "Rules used to highlight certain commands.
@ -252,7 +252,7 @@ matching command names and use
the element is a cons cell, it should take the form (regexp . the element is a cons cell, it should take the form (regexp .
face to apply)." face to apply)."
:type '(repeat (choice string (cons regexp face))) :type '(repeat (choice string (cons regexp face)))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-special-keys '() (defcustom which-key-special-keys '()
"These keys will automatically be truncated to one character. "These keys will automatically be truncated to one character.
@ -261,12 +261,12 @@ is disabled by default. An example configuration is
\(setq which-key-special-keys \\='(\"SPC\" \"TAB\" \"RET\" \"ESC\" \"DEL\")\)" \(setq which-key-special-keys \\='(\"SPC\" \"TAB\" \"RET\" \"ESC\" \"DEL\")\)"
:type '(repeat string) :type '(repeat string)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-buffer-name " *which-key*" (defcustom which-key-buffer-name " *which-key*"
"Name of which-key buffer." "Name of which-key buffer."
:type 'string :type 'string
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-prefix 'echo (defcustom which-key-show-prefix 'echo
"Whether to and where to display the current prefix sequence. "Whether to and where to display the current prefix sequence.
@ -278,7 +278,7 @@ and nil. nil turns the feature off."
(const :tag "In the echo area" echo) (const :tag "In the echo area" echo)
(const :tag "In the mode-line" mode-line) (const :tag "In the mode-line" mode-line)
(const :tag "Hide" nil)) (const :tag "Hide" nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-popup-type 'side-window (defcustom which-key-popup-type 'side-window
"Supported types are minibuffer, side-window, frame, and custom." "Supported types are minibuffer, side-window, frame, and custom."
@ -286,18 +286,18 @@ and nil. nil turns the feature off."
(const :tag "Show in side window" side-window) (const :tag "Show in side window" side-window)
(const :tag "Show in popup frame" frame) (const :tag "Show in popup frame" frame)
(const :tag "Use your custom display functions" custom)) (const :tag "Use your custom display functions" custom))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-min-display-lines 1 (defcustom which-key-min-display-lines 1
"Minimum number of horizontal lines to display in the which-key buffer." "Minimum number of horizontal lines to display in the which-key buffer."
:type 'integer :type 'integer
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-max-display-columns nil (defcustom which-key-max-display-columns nil
"Maximum number of columns to display in the which-key buffer. "Maximum number of columns to display in the which-key buffer.
A value of nil means don't impose a maximum." A value of nil means don't impose a maximum."
:type '(choice integer (const :tag "Unbounded" nil)) :type '(choice integer (const :tag "Unbounded" nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-side-window-location 'bottom (defcustom which-key-side-window-location 'bottom
"Location of which-key popup when `which-key-popup-type' is side-window. "Location of which-key popup when `which-key-popup-type' is side-window.
@ -311,7 +311,7 @@ location is tried."
(const top) (const top)
(const (right bottom)) (const (right bottom))
(const (bottom right))) (const (bottom right)))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-side-window-slot 0 (defcustom which-key-side-window-slot 0
"The `slot' to use for `display-buffer-in-side-window'. "The `slot' to use for `display-buffer-in-side-window'.
@ -325,31 +325,31 @@ preceding (that is, above or on the left of) the middle slot. A
positive value means use a slot following (that is, below or on positive value means use a slot following (that is, below or on
the right of) the middle slot. The default is zero." the right of) the middle slot. The default is zero."
:type 'integer :type 'integer
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-side-window-max-width 0.333 (defcustom which-key-side-window-max-width 0.333
"Maximum width of which-key popup when type is side-window. "Maximum width of which-key popup when type is side-window.
This variable can also be a number between 0 and 1. In that case, This variable can also be a number between 0 and 1. In that case,
it denotes a percentage out of the frame's width." it denotes a percentage out of the frame's width."
:type 'float :type 'float
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-side-window-max-height 0.25 (defcustom which-key-side-window-max-height 0.25
"Maximum height of which-key popup when type is side-window. "Maximum height of which-key popup when type is side-window.
This variable can also be a number between 0 and 1. In that case, it denotes This variable can also be a number between 0 and 1. In that case, it denotes
a percentage out of the frame's height." a percentage out of the frame's height."
:type 'float :type 'float
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-frame-max-width 60 (defcustom which-key-frame-max-width 60
"Maximum width of which-key popup when type is frame." "Maximum width of which-key popup when type is frame."
:type 'natnum :type 'natnum
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-frame-max-height 20 (defcustom which-key-frame-max-height 20
"Maximum height of which-key popup when type is frame." "Maximum height of which-key popup when type is frame."
:type 'natnum :type 'natnum
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-allow-imprecise-window-fit (not (display-graphic-p)) (defcustom which-key-allow-imprecise-window-fit (not (display-graphic-p))
"Allow which-key to use a simpler method for resizing the popup. "Allow which-key to use a simpler method for resizing the popup.
@ -359,13 +359,13 @@ this on may help.
See https://github.com/justbur/emacs-which-key/issues/130 See https://github.com/justbur/emacs-which-key/issues/130
and https://github.com/justbur/emacs-which-key/issues/225." and https://github.com/justbur/emacs-which-key/issues/225."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-remaining-keys nil (defcustom which-key-show-remaining-keys nil
"Show remaining keys in last slot, when keys are hidden." "Show remaining keys in last slot, when keys are hidden."
:type '(radio (const :tag "Yes" t) :type '(radio (const :tag "Yes" t)
(const :tag "No" nil)) (const :tag "No" nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-sort-order #'which-key-key-order (defcustom which-key-sort-order #'which-key-key-order
"Order in which the key bindings are sorted. "Order in which the key bindings are sorted.
@ -385,25 +385,25 @@ information."
(function-item which-key-description-order) (function-item which-key-description-order)
(function-item which-key-prefix-then-key-order) (function-item which-key-prefix-then-key-order)
(function-item which-key-local-then-key-order)) (function-item which-key-local-then-key-order))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-sort-uppercase-first t (defcustom which-key-sort-uppercase-first t
"If non-nil, uppercase comes before lowercase in sorting. "If non-nil, uppercase comes before lowercase in sorting.
This applies to the function chosen in This applies to the function chosen in
`which-key-sort-order'. Otherwise, the order is reversed." `which-key-sort-order'. Otherwise, the order is reversed."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-paging-prefixes '() (defcustom which-key-paging-prefixes '()
"Enable paging for these prefixes." "Enable paging for these prefixes."
:type '(repeat string) :type '(repeat string)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-paging-key "<f5>" (defcustom which-key-paging-key "<f5>"
"Key to use for changing pages. "Key to use for changing pages.
Bound after each of the prefixes in `which-key-paging-prefixes'" Bound after each of the prefixes in `which-key-paging-prefixes'"
:type 'string :type 'string
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
;; (defcustom which-key-undo-key nil ;; (defcustom which-key-undo-key nil
;; "Key (string) to use for undoing keypresses. Bound recursively ;; "Key (string) to use for undoing keypresses. Bound recursively
@ -422,7 +422,7 @@ Normally `help-char' after a prefix calls
`describe-prefix-bindings'. This changes that command to a `describe-prefix-bindings'. This changes that command to a
which-key paging command when `which-key-mode' is active." which-key paging command when `which-key-mode' is active."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-early-on-C-h nil (defcustom which-key-show-early-on-C-h nil
"Allow \\`C-h' (`help-char') to trigger which-key popup before timer. "Allow \\`C-h' (`help-char') to trigger which-key popup before timer.
@ -438,7 +438,7 @@ using \\`C-h'.
Note that `which-key-idle-delay' should be set before turning on Note that `which-key-idle-delay' should be set before turning on
`which-key-mode'." `which-key-mode'."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-preserve-window-configuration nil (defcustom which-key-preserve-window-configuration nil
"Save and restore window configuration around which-key popup display. "Save and restore window configuration around which-key popup display.
@ -448,7 +448,7 @@ prevents which-key from changing window position of visible
buffers. Only taken into account when popup type is buffers. Only taken into account when popup type is
side-window." side-window."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defvar which-key-C-h-map-prompt (defvar which-key-C-h-map-prompt
(concat " \\<which-key-C-h-map>" (concat " \\<which-key-C-h-map>"
@ -516,7 +516,7 @@ of terminals issue META modifier for the Alt key.
See Info node `(emacs)Modifier Keys'." See Info node `(emacs)Modifier Keys'."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-delay-functions nil (defcustom which-key-delay-functions nil
"List of functions that may delay the which-key popup. "List of functions that may delay the which-key popup.
@ -532,7 +532,7 @@ this list to return a value is the value that is used.
The delay time is effectively added to the normal The delay time is effectively added to the normal
`which-key-idle-delay'." `which-key-idle-delay'."
:type '(repeat function) :type '(repeat function)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-allow-regexps nil (defcustom which-key-allow-regexps nil
"A list of regexp strings to use to filter key sequences. "A list of regexp strings to use to filter key sequences.
@ -540,7 +540,7 @@ When non-nil, for a key sequence to trigger the which-key popup
it must match one of the regexps in this list. The format of the it must match one of the regexps in this list. The format of the
key sequences is what is produced by `key-description'." key sequences is what is produced by `key-description'."
:type '(repeat regexp) :type '(repeat regexp)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-inhibit-regexps nil (defcustom which-key-inhibit-regexps nil
"A list of regexp strings to use to filter key sequences. "A list of regexp strings to use to filter key sequences.
@ -548,7 +548,7 @@ When non-nil, for a key sequence to trigger the which-key popup
it cannot match one of the regexps in this list. The format of it cannot match one of the regexps in this list. The format of
the key sequences is what is produced by `key-description'." the key sequences is what is produced by `key-description'."
:type '(repeat regexp) :type '(repeat regexp)
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-transient-maps nil (defcustom which-key-show-transient-maps nil
"Show keymaps created by `set-transient-map' when applicable. "Show keymaps created by `set-transient-map' when applicable.
@ -557,7 +557,7 @@ More specifically, detect when `overriding-terminal-local-map' is
set (this is the keymap used by `set-transient-map') and display set (this is the keymap used by `set-transient-map') and display
it." it."
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(make-obsolete-variable (make-obsolete-variable
'which-key-enable-extended-define-key 'which-key-enable-extended-define-key
@ -568,7 +568,7 @@ it."
(defcustom which-key-init-buffer-hook '() (defcustom which-key-init-buffer-hook '()
"Hook run when which-key buffer is initialized." "Hook run when which-key buffer is initialized."
:type 'hook :type 'hook
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
;;;; Faces ;;;; Faces
@ -581,31 +581,31 @@ it."
'((t . (:inherit font-lock-constant-face))) '((t . (:inherit font-lock-constant-face)))
"Face for which-key keys." "Face for which-key keys."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-separator-face (defface which-key-separator-face
'((t . (:inherit font-lock-comment-face))) '((t . (:inherit font-lock-comment-face)))
"Face for the separator (default separator is an arrow)." "Face for the separator (default separator is an arrow)."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-note-face (defface which-key-note-face
'((t . (:inherit which-key-separator-face))) '((t . (:inherit which-key-separator-face)))
"Face for notes or hints occasionally provided." "Face for notes or hints occasionally provided."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-command-description-face (defface which-key-command-description-face
'((t . (:inherit font-lock-function-name-face))) '((t . (:inherit font-lock-function-name-face)))
"Face for the key description when it is a command." "Face for the key description when it is a command."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-local-map-description-face (defface which-key-local-map-description-face
'((t . (:inherit which-key-command-description-face))) '((t . (:inherit which-key-command-description-face)))
"Face for the key description when it is found in `current-local-map'." "Face for the key description when it is found in `current-local-map'."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-highlighted-command-face (defface which-key-highlighted-command-face
'((t . (:inherit (which-key-command-description-face highlight)))) '((t . (:inherit (which-key-command-description-face highlight))))
@ -613,25 +613,25 @@ it."
A command is highlighted, when it matches a string in A command is highlighted, when it matches a string in
`which-key-highlighted-command-list'." `which-key-highlighted-command-list'."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-group-description-face (defface which-key-group-description-face
'((t . (:inherit font-lock-keyword-face))) '((t . (:inherit font-lock-keyword-face)))
"Face for the key description when it is a group or prefix." "Face for the key description when it is a group or prefix."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-special-key-face (defface which-key-special-key-face
'((t . (:inherit which-key-key-face :inverse-video t :weight bold))) '((t . (:inherit which-key-key-face :inverse-video t :weight bold)))
"Face for special keys (\\`SPC', \\`TAB', \\`RET')." "Face for special keys (\\`SPC', \\`TAB', \\`RET')."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defface which-key-docstring-face (defface which-key-docstring-face
'((t . (:inherit which-key-note-face))) '((t . (:inherit which-key-note-face)))
"Face for docstrings." "Face for docstrings."
:group 'which-key-faces :group 'which-key-faces
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
;;;; Custom popup ;;;; Custom popup
@ -642,14 +642,14 @@ return the maximum height in lines and width in characters of the
which-key popup in the form a cons cell (height . width)." which-key popup in the form a cons cell (height . width)."
:group 'which-key :group 'which-key
:type '(choice function (const nil)) :type '(choice function (const nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-custom-hide-popup-function nil (defcustom which-key-custom-hide-popup-function nil
"Set a custom hide-popup function. "Set a custom hide-popup function.
It takes no arguments and the return value is ignored." It takes no arguments and the return value is ignored."
:group 'which-key :group 'which-key
:type '(choice function (const nil)) :type '(choice function (const nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-custom-show-popup-function nil (defcustom which-key-custom-show-popup-function nil
"Set a custom show-popup function. "Set a custom show-popup function.
@ -658,13 +658,13 @@ width) in lines and characters respectively. The return value is
ignored." ignored."
:group 'which-key :group 'which-key
:type '(choice function (const nil)) :type '(choice function (const nil))
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-lighter " WK" (defcustom which-key-lighter " WK"
"Minor mode lighter to use in the mode-line." "Minor mode lighter to use in the mode-line."
:group 'which-key :group 'which-key
:type 'string :type 'string
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defvar which-key-inhibit nil (defvar which-key-inhibit nil
"Prevent which-key from popping up momentarily. "Prevent which-key from popping up momentarily.
@ -681,7 +681,7 @@ popup. If any function returns a non-nil value, the popup will
not display." not display."
:group 'which-key :group 'which-key
:type 'hook :type 'hook
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defvar which-key-keymap-history nil (defvar which-key-keymap-history nil
"History of keymap selections. "History of keymap selections.
@ -812,7 +812,7 @@ allow which-key to support packages that insert non-standard
`keys' into the key sequence being read by Emacs." `keys' into the key sequence being read by Emacs."
:group 'which-key :group 'which-key
:type 'function :type 'function
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
;;;; Evil ;;;; Evil
@ -826,7 +826,7 @@ setting this to non-nil will override this behavior for evil
operators." operators."
:group 'which-key :group 'which-key
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defcustom which-key-show-operator-state-maps nil (defcustom which-key-show-operator-state-maps nil
"Show the keys following an evil command that reads a motion. "Show the keys following an evil command that reads a motion.
@ -836,7 +836,7 @@ might be some valid keys missing and it might be showing some
invalid keys." invalid keys."
:group 'which-key :group 'which-key
:type 'boolean :type 'boolean
:package-version "1.0" :version "30.1") :package-version '(which-key . "1.0") :version "30.1")
(defun which-key-evil-this-operator-p () (defun which-key-evil-this-operator-p ()
(and which-key-allow-evil-operators (and which-key-allow-evil-operators
@ -948,6 +948,10 @@ given your settings)."
#'which-key--hide-popup-on-frame-size-change) #'which-key--hide-popup-on-frame-size-change)
(which-key--stop-timer))) (which-key--stop-timer)))
;; Update `customize-package-emacs-version-alist'.
(add-to-list 'customize-package-emacs-version-alist
'(which-key ("1.0" . "30.1")))
(defun which-key--init-buffer () (defun which-key--init-buffer ()
"Initialize which-key buffer." "Initialize which-key buffer."
(unless (buffer-live-p which-key--buffer) (unless (buffer-live-p which-key--buffer)