From: Philip Kaludercic Date: Mon, 24 Jun 2024 07:42:20 +0000 (+0200) Subject: Update options that depend on 'which-key-dont-use-unicode' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a77192b057b35f2d080799a8d6d55ddeaceac5d;p=emacs.git Update options that depend on 'which-key-dont-use-unicode' * lisp/which-key.el (which-key-dont-use-unicode): Add a custom setter that re-evaluates a manual list of options use 'which-key-dont-use-unicode' to determine their default value. https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00130.html (cherry picked from commit 768e92b9c0214a2aa1be2afbee48c455583d3110) --- diff --git a/lisp/which-key.el b/lisp/which-key.el index ee7a1cea333..91007ce4ada 100644 --- a/lisp/which-key.el +++ b/lisp/which-key.el @@ -128,6 +128,11 @@ of the which-key popup." "If non-nil, don't use any unicode characters in default setup. For affected settings, see `which-key-replacement-alist', `which-key-ellipsis' `which-key-separator'." + :set (lambda (sym val) + (custom-set-default sym val) + (mapc #'custom-reevaluate-setting + '(which-key-separator + which-key-ellipsis))) :type 'boolean :package-version "1.0" :version "30.1")