>From be105b8d876c4e0bace6049726302bde1cae7cdd Mon Sep 17 00:00:00 2001 From: "F. Jason Park" Date: Tue, 12 Dec 2023 19:04:12 -0800 Subject: [PATCH 2/5] [5.6] Fix Custom :type of erc-track-faces-normal-list * lisp/erc/erc-track.el (erc-modified-channels-object): Load `erc-button' during validation so that Customize chooses the correct UI instead of a generic field with "(mismatch)" printed alongside the "STATE" button. --- lisp/erc/erc-track.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index a36b781e04d..db10063cafe 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el @@ -225,8 +225,9 @@ erc-track-faces-normal-list are occurring in these channels. The effect may be disabled by setting this variable to nil." - :type '(repeat (choice face - (repeat :tag "Combination" face)))) + :type (erc--with-dependent-type-match + (repeat (choice face (repeat :tag "Combination" face))) + erc-button)) (defcustom erc-track-position-in-mode-line 'before-modes "Where to show modified channel information in the mode-line. -- 2.42.0