From: Glenn Morris Date: Sun, 2 Dec 2007 21:41:33 +0000 (+0000) Subject: (byte-compile-declare-function): Reverse branches of if statement. X-Git-Tag: emacs-pretest-23.0.90~9136 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7628b337d8365ee63e5373adcd6bb9142894fddc;p=emacs.git (byte-compile-declare-function): Reverse branches of if statement. --- diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 0f7546bc642..e6418a5e331 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -2823,10 +2823,10 @@ 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 (or (< (length form) 4) ; arglist not specified - (not (listp (nth 3 form)))) - t - (list 'declared (nth 3 form)))) + (if (and (> (length form) 3) + (listp (nth 3 form))) + (list 'declared (nth 3 form)) + t)) ; arglist not specified byte-compile-function-environment) nil)