From fe33e7c83c02477becbf965733d7d817c8ec331a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 19 May 2005 15:39:21 +0000 Subject: (byte-compile-file-form-custom-declare-variable): Call byte-compile-nogroup-warn if appropriate. --- lisp/emacs-lisp/bytecomp.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/emacs-lisp/bytecomp.el') diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 970a64d062b..ac6093a4660 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -2170,6 +2170,8 @@ list that represents a doc string reference. (put 'custom-declare-variable 'byte-hunk-handler 'byte-compile-file-form-custom-declare-variable) (defun byte-compile-file-form-custom-declare-variable (form) + (when (memq 'callargs byte-compile-warnings) + (byte-compile-nogroup-warn form)) (when (memq 'free-vars byte-compile-warnings) (push (nth 1 (nth 1 form)) byte-compile-bound-variables)) (let ((tail (nthcdr 4 form))) -- cgit v1.2.1