aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2007-11-30 07:45:18 +0000
committerGlenn Morris2007-11-30 07:45:18 +0000
commitabc11cbb564f87fe3531822e079453155ab186fd (patch)
tree7148397ff6a096625f5f707f731a73c1c83f0434 /lisp
parent7b58c351cf9f19ac243f33efcab74d475a58f947 (diff)
downloademacs-abc11cbb564f87fe3531822e079453155ab186fd.tar.gz
emacs-abc11cbb564f87fe3531822e079453155ab186fd.zip
(byte-compile-declare-function): Third argument to declare-function
must be a list to specify arglist.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
1 files changed, 2 insertions, 1 deletions
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."
2823(put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function) 2823(put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function)
2824(defun byte-compile-declare-function (form) 2824(defun byte-compile-declare-function (form)
2825 (push (cons (nth 1 form) 2825 (push (cons (nth 1 form)
2826 (if (< (length form) 4) ; arglist not specified 2826 (if (or (< (length form) 4) ; arglist not specified
2827 (not (listp (nth 3 form))))
2827 t 2828 t
2828 (list 'declared (nth 3 form)))) 2829 (list 'declared (nth 3 form))))
2829 byte-compile-function-environment) 2830 byte-compile-function-environment)