]> git.eshelyaron.com Git - emacs.git/commitdiff
(elint-init-form): Report declarations where the filename is not a string.
authorGlenn Morris <rgm@gnu.org>
Wed, 30 Sep 2009 07:24:35 +0000 (07:24 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 30 Sep 2009 07:24:35 +0000 (07:24 +0000)
lisp/ChangeLog
lisp/emacs-lisp/elint.el

index 05837378097a91cd664be3103d8ca50d629812ad..a6c42130907234b675f962a6e8f959e591050e84 100644 (file)
@@ -1,10 +1,15 @@
 2009-09-30  Glenn Morris  <rgm@gnu.org>
 
+       * cedet/semantic/analyze/fcn.el (semantic-scope-find): Fix declaration.
+
        * cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Replace runtime use
        of CL function `remove-if-not'.
 
        * emacs-lisp/authors.el (authors-ignored-files): Add "js2-mode.el".
 
+       * emacs-lisp/elint.el (elint-init-form): Report declarations where the
+       filename is not a string.
+
 2009-09-29  Chong Yidong  <cyd@stupidchicken.com>
 
        * files.el (safe-local-eval-forms): Fix typo.
index 27e7a7f293aa32462947ced9d6f2f8cfc56a9f23..59be145d7ec37636b294ca6547ae5497412eefd2 100644 (file)
@@ -420,11 +420,16 @@ Return nil if there are no more forms, t otherwise."
    ((eq (car form) 'autoload)
     (setq env (elint-env-add-func env (cadr (cadr form)) 'unknown)))
    ((eq (car form) 'declare-function)
-    (setq env (elint-env-add-func env (cadr form)
-                                 (if (or (< (length form) 4)
-                                         (eq (nth 3 form) t))
-                                     'unknown
-                                   (nth 3 form)))))
+    (setq env (elint-env-add-func
+              env (cadr form)
+              (if (or (< (length form) 4)
+                      (eq (nth 3 form) t)
+                      (unless (stringp (nth 2 form))
+                        (elint-error "Malformed declaration for `%s'"
+                                     (cadr form))
+                        t))
+                  'unknown
+                (nth 3 form)))))
    ((and (eq (car form) 'defalias) (listp (nth 2 form)))
     ;; If the alias points to something already in the environment,
     ;; add the alias to the environment with the same arguments.