From: Glenn Morris Date: Fri, 30 Nov 2007 07:45:18 +0000 (+0000) Subject: (byte-compile-declare-function): Third argument to declare-function X-Git-Tag: emacs-pretest-23.0.90~9242 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=abc11cbb564f87fe3531822e079453155ab186fd;p=emacs.git (byte-compile-declare-function): Third argument to declare-function must be a list to specify arglist. --- diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index bc83a25cb3a..0f7546bc642 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -2823,7 +2823,8 @@ If FORM is a lambda or a macro, byte-compile it as a function." (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)