changeset 86840:ee629020b5a7

(byte-compile-declare-function): Third argument to declare-function must be a list to specify arglist.
author Glenn Morris <rgm@gnu.org>
date Fri, 30 Nov 2007 07:45:18 +0000
parents 9b46232ba801
children 885c9731dd1d
files lisp/emacs-lisp/bytecomp.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/bytecomp.el	Fri Nov 30 07:44:24 2007 +0000
+++ b/lisp/emacs-lisp/bytecomp.el	Fri Nov 30 07:45:18 2007 +0000
@@ -2823,7 +2823,8 @@
 (put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function)
 (defun byte-compile-declare-function (form)
   (push (cons (nth 1 form)
-              (if (< (length form) 4)   ; arglist not specified
+              (if (or (< (length form) 4)   ; arglist not specified
+                      (not (listp (nth 3 form))))
                   t
                 (list 'declared (nth 3 form))))
         byte-compile-function-environment)