Subject: [PATCH] Fix invalid defcustom :group when :predicate is used

From: Richard Hansen <[email-masked]>
Date: Sat, 18 Jun 2022 01:10:06 -0400

X-Debbugs-CC: [email-masked]

The attached patch fixes a bug in Emacs 28:

     Fix invalid defcustom :group when :predicate is used

     * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
     invalid `:group' argument for the `-modes' defcustom that is created
     when `:predicate' is used.
From fbb1ad3d143aa335534527118db3115383be9fb3 Mon Sep 17 00:00:00 2001
From: Richard Hansen <[email-masked]>
Date: Sat, 18 Jun 2022 00:41:04 -0400
Subject: [PATCH] Fix invalid defcustom :group when :predicate is used

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
invalid `:group' argument for the `-modes' defcustom that is created
when `:predicate' is used.
---
 lisp/emacs-lisp/easy-mmode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 1d93fe4801..df37903503 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -555,7 +555,7 @@ define-globalized-minor-mode
 list."
                       mode)
              :type '(repeat sexp)
-             :group ,group))
+             ,@group))
 
        ;; Autoloading define-globalized-minor-mode autoloads everything
        ;; up-to-here.
-- 
2.36.1