# HG changeset patch # User Glenn Morris # Date 1196408718 0 # Node ID ee629020b5a73078aec4b0a0c58001f7abf739a3 # Parent 9b46232ba8015ef5b57e00dc5d9ec9529a3b0766 (byte-compile-declare-function): Third argument to declare-function must be a list to specify arglist. diff -r 9b46232ba801 -r ee629020b5a7 lisp/emacs-lisp/bytecomp.el --- 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)