; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 24 Jun 2024 20:15:25 +0000 (22:15 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 25 Jun 2024 06:36:37 +0000 (08:36 +0200)
This fixes the change from 768e92b9, which accidentally would call
'custom-reevaluate-setting' on user options before they were registered,
initialising their default value to nil.  When the 'defcustom'
expressions were evaluated later on, they were not properly initialised
as their variables were already bound to some value (nil).

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00825.html

lisp/which-key.el

index a5075b3ba6968b79b0b10a9d80994cc0aa02fe98..973616ef1169aa16fbc0dc0d36a0af983d84fcf2 100644 (file)
@@ -133,6 +133,7 @@ For affected settings, see `which-key-replacement-alist', `which-key-ellipsis'
          (mapc #'custom-reevaluate-setting
                '(which-key-separator
                  which-key-ellipsis)))
+  :initialize #'custom-initialize-changed
   :type 'boolean
   :package-version "1.0" :version "30.1")