changeset 63939:885d1b72a2b1

(byte-compile-nogroup-warn): Don't warn when name is not constant or for defining the group `emacs'.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Jul 2005 16:17:11 +0000
parents cd982981d99a
children 5412b4421984
files lisp/emacs-lisp/bytecomp.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/bytecomp.el	Sun Jul 03 16:14:02 2005 +0000
+++ b/lisp/emacs-lisp/bytecomp.el	Sun Jul 03 16:17:11 2005 +0000
@@ -1248,7 +1248,10 @@
 (defun byte-compile-nogroup-warn (form)
   (let ((keyword-args (cdr (cdr (cdr (cdr form)))))
 	(name (cadr form)))
-    (or (plist-get keyword-args :group)
+    (or (not (eq (car-safe name) 'quote))
+	(and (eq (car form) 'custom-declare-group)
+	     (equal name ''emacs))
+	(plist-get keyword-args :group)
 	(not (and (consp name) (eq (car name) 'quote)))
 	(byte-compile-warn
 	 "%s for `%s' fails to specify containing group"