aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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