diff options
| author | Richard M. Stallman | 2005-05-19 15:39:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-19 15:39:21 +0000 |
| commit | fe33e7c83c02477becbf965733d7d817c8ec331a (patch) | |
| tree | 095f53a0c10f839baaf0ad11f03bae8040913059 | |
| parent | 3c9e7f42ca27ea042c16c034155fd429d96c74ca (diff) | |
| download | emacs-fe33e7c83c02477becbf965733d7d817c8ec331a.tar.gz emacs-fe33e7c83c02477becbf965733d7d817c8ec331a.zip | |
(byte-compile-file-form-custom-declare-variable):
Call byte-compile-nogroup-warn if appropriate.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 |
1 files changed, 2 insertions, 0 deletions
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. | |||
| 2170 | (put 'custom-declare-variable 'byte-hunk-handler | 2170 | (put 'custom-declare-variable 'byte-hunk-handler |
| 2171 | 'byte-compile-file-form-custom-declare-variable) | 2171 | 'byte-compile-file-form-custom-declare-variable) |
| 2172 | (defun byte-compile-file-form-custom-declare-variable (form) | 2172 | (defun byte-compile-file-form-custom-declare-variable (form) |
| 2173 | (when (memq 'callargs byte-compile-warnings) | ||
| 2174 | (byte-compile-nogroup-warn form)) | ||
| 2173 | (when (memq 'free-vars byte-compile-warnings) | 2175 | (when (memq 'free-vars byte-compile-warnings) |
| 2174 | (push (nth 1 (nth 1 form)) byte-compile-bound-variables)) | 2176 | (push (nth 1 (nth 1 form)) byte-compile-bound-variables)) |
| 2175 | (let ((tail (nthcdr 4 form))) | 2177 | (let ((tail (nthcdr 4 form))) |