mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Fix edge-case with 'which-key-dont-use-unicode' setter
* lisp/which-key.el (which-key-dont-use-unicode): Check if the user options have a 'standard-value' before proceeding to reevaluate. This avoids accidentally setting the symbol value to nil, before the user option has been declared, overriding the actual non-nil, default values. (Bug#72077)
This commit is contained in:
parent
68a5f1f7d1
commit
1ae2f00447
@ -130,9 +130,10 @@ For affected settings, see `which-key-replacement-alist', `which-key-ellipsis'
|
|||||||
`which-key-separator'."
|
`which-key-separator'."
|
||||||
:set (lambda (sym val)
|
:set (lambda (sym val)
|
||||||
(custom-set-default sym val)
|
(custom-set-default sym val)
|
||||||
(mapc #'custom-reevaluate-setting
|
(dolist (sym '(which-key-separator
|
||||||
'(which-key-separator
|
which-key-ellipsis))
|
||||||
which-key-ellipsis)))
|
(when (get sym 'standard-value)
|
||||||
|
(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 "1.0" :version "30.1")
|
||||||
|
Loading…
Reference in New Issue
Block a user