From c8ec3108a3d0bd1955d21f40b3c0c3b36d55b20d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 26 Mar 2019 11:45:07 -0400 Subject: [PATCH] * easy-mmode.el: simplify via custom-current-group * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Don't try and guess a default :group, defcustom does it better anyway. --- lisp/emacs-lisp/easy-mmode.el | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 8ac0a1d5938..be531aab849 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -411,12 +411,6 @@ on if the hook has explicitly disabled it." (:global (setq keys (cdr keys))) (_ (push keyw extra-keywords) (push (pop keys) extra-keywords)))) - (unless group - ;; We might as well provide a best-guess default group. - (setq group - `(:group ',(intern (replace-regexp-in-string - "-mode\\'" "" (symbol-name mode)))))) - `(progn (progn :autoload-end -- 2.39.5