emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c8ec310: * easy-mmode.el: simplify via custom-curre


From: Stefan Monnier
Subject: [Emacs-diffs] master c8ec310: * easy-mmode.el: simplify via custom-current-group
Date: Tue, 26 Mar 2019 11:45:15 -0400 (EDT)

branch: master
commit c8ec3108a3d0bd1955d21f40b3c0c3b36d55b20d
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * 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 8ac0a1d..be531aa 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]