Function: elint-get-args
elint-get-args is a byte-compiled function defined in elint.el.gz.
Signature
(elint-get-args FUNC ENV)
Documentation
Find the args of FUNC in ENV.
Returns unknown if we couldn't find arguments.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/elint.el.gz
(defun elint-get-args (func env)
"Find the args of FUNC in ENV.
Returns `unknown' if we couldn't find arguments."
(let ((f (elint-env-find-func env func)))
(if f
(cadr f)
(if (symbolp func)
(if (eq func elint-bound-function)
'unknown
(if (fboundp func)
(let ((fcode (indirect-function func)))
(if (subrp fcode)
;; FIXME builtins with no args have args = nil.
(or (get func 'elint-args) 'unknown)
(elint-find-args-in-code fcode)))
'undefined))
(elint-find-args-in-code func)))))