aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-03-31 14:49:09 +0000
committerLute Kamstra2005-03-31 14:49:09 +0000
commit2a3a044ce6b81e261862c1bebb8ce560e344bb91 (patch)
treee399a4be2d120750008918553ce1f102d4b5c6c9
parentfafbb99d577133c09d38ef2aa315a7b583c38079 (diff)
downloademacs-2a3a044ce6b81e261862c1bebb8ce560e344bb91.tar.gz
emacs-2a3a044ce6b81e261862c1bebb8ce560e344bb91.zip
(easy-mmode-define-global-mode, define-minor-mode): Call
custom-current-group at load-time.
-rw-r--r--lisp/emacs-lisp/easy-mmode.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index b6b91710ed4..da93190f2e9 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -1,6 +1,7 @@
1;;; easy-mmode.el --- easy definition for major and minor modes 1;;; easy-mmode.el --- easy definition for major and minor modes
2 2
3;; Copyright (C) 1997,2000,01,02,03,2004 Free Software Foundation, Inc. 3;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005
4;; Free Software Foundation, Inc.
4 5
5;; Author: Georges Brun-Cottan <Georges.Brun-Cottan@inria.fr> 6;; Author: Georges Brun-Cottan <Georges.Brun-Cottan@inria.fr>
6;; Maintainer: Stefan Monnier <monnier@gnu.org> 7;; Maintainer: Stefan Monnier <monnier@gnu.org>
@@ -152,8 +153,8 @@ For example, you could write
152 (unless group 153 (unless group
153 ;; We might as well provide a best-guess default group. 154 ;; We might as well provide a best-guess default group.
154 (setq group 155 (setq group
155 `(:group ',(or (custom-current-group) 156 `(:group (or (custom-current-group)
156 (intern (replace-regexp-in-string 157 ',(intern (replace-regexp-in-string
157 "-mode\\'" "" mode-name)))))) 158 "-mode\\'" "" mode-name))))))
158 159
159 `(progn 160 `(progn
@@ -278,8 +279,8 @@ KEYS is a list of CL-style keyword arguments:
278 (unless group 279 (unless group
279 ;; We might as well provide a best-guess default group. 280 ;; We might as well provide a best-guess default group.
280 (setq group 281 (setq group
281 `(:group ',(or (custom-current-group) 282 `(:group (or (custom-current-group)
282 (intern (replace-regexp-in-string 283 ',(intern (replace-regexp-in-string
283 "-mode\\'" "" (symbol-name mode))))))) 284 "-mode\\'" "" (symbol-name mode)))))))
284 285
285 `(progn 286 `(progn