Function: elint-unbound-variable
elint-unbound-variable is a byte-compiled function defined in
elint.el.gz.
Signature
(elint-unbound-variable VAR ENV)
Documentation
Return t if VAR is unbound in ENV.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/elint.el.gz
(defun elint-unbound-variable (var env)
"Return t if VAR is unbound in ENV."
;; #1063 suggests adding (symbol-file var) here, but I don't think
;; this is right, because it depends on what files you happen to have
;; loaded at the time, which might not be the same when the code runs.
;; It also suggests adding:
;; (numberp (get var 'variable-documentation))
;; (numberp (cdr-safe (get var 'variable-documentation)))
;; but this is not needed now elint-scan-doc-file exists.
(not (or (memq var '(nil t))
(eq var elint-bound-variable)
(elint-env-find-var env var)
(memq var elint-builtin-variables)
(memq var elint-autoloaded-variables)
(memq var elint-standard-variables))))