File: elint.el.html

*Note: This package is obsolete. Use the byte-compiler instead.*

This is a linter for Emacs Lisp. Currently, it mainly catches misspellings and undefined variables, although it can also catch function calls with the wrong number of arguments.

To use it, call elint-current-buffer or elint-defun to lint a buffer or defun. The first call runs elint-initialize to set up some argument data, which may take a while.

The linter will try to "include" any require'd libraries to find the variables defined in those. There is a fair amount of voodoo involved in this, but it seems to work in normal situations.

Defined variables (20)

elint-autoloaded-variablesList of ‘loaddefs.el’ variables. Set by ‘elint-initialize’.
elint-bound-functionName of a temporarily bound function symbol.
elint-bound-variableName of a temporarily bound symbol.
elint-buffer-envThe environment of an elisp buffer.
elint-buffer-formsThe top forms in a buffer.
elint-builtin-variablesList of built-in variables. Set by ‘elint-initialize’.
elint-directory-skip-reIf non-nil, a regexp matching files to skip when linting a directory.
elint-extra-errorsErrors without ‘error-message’ or ‘error-conditions’ properties.
elint-featuresList of all libraries this buffer has required, or that have been provided.
elint-ignored-warningsIf non-nil, a list of issue types that Elint should ignore.
elint-last-env-timeThe last time the buffers env was updated.
elint-log-bufferThe buffer in which to log lint messages.
elint-preloaded-envEnvironment defined by the preloaded (dumped) Lisp files.
elint-preloaded-skip-reRegexp matching elements of ‘preloaded-file-list’ to ignore.
elint-scan-preloadedNon-nil means to scan ‘preloaded-file-list’ when initializing.
elint-special-formsFunctions to call when some special form should be linted.
elint-standard-variablesStandard variables, excluding ‘elint-builtin-variables’.
elint-top-formThe currently linted top form, or nil.
elint-top-form-loggedNon-nil if the currently linted top form has been mentioned in the log buffer.
elint-unknown-builtin-argsThose built-ins for which we can’t find arguments, if any.

Defined functions (59)

elint--file(FILE)
elint-add-required-env(ENV NAME FILE)
elint-check-cond-form(FORM ENV)
elint-check-condition-case-form(FORM ENV)
elint-check-conditional-form(FORM ENV)
elint-check-defalias-form(FORM ENV)
elint-check-defcustom-form(FORM ENV)
elint-check-defun-form(FORM ENV)
elint-check-defvar-form(FORM ENV)
elint-check-function-form(FORM ENV)
elint-check-let-form(FORM ENV)
elint-check-macro-form(FORM ENV)
elint-check-quote-form(FORM ENV)
elint-check-setq-form(FORM ENV)
elint-clear-log(&optional HEADER)
elint-current-buffer()
elint-defun()
elint-directory(DIRECTORY)
elint-display-log()
elint-env-add-env(ENV NEWENV)
elint-env-add-func(ENV FUNC ARGS)
elint-env-add-global-var(ENV VAR)
elint-env-add-macro(ENV MACRO DEF)
elint-env-add-var(ENV VAR)
elint-env-find-func(ENV FUNC)
elint-env-find-var(ENV VAR)
elint-env-macro-env(ENV)
elint-env-macrop(ENV MACRO)
elint-error(STRING &rest ARGS)
elint-file(FILE)
elint-find-args-in-code(CODE)
elint-find-autoloaded-variables()
elint-find-builtin-args(&optional LIST)
elint-find-builtins()
elint-find-next-top-form()
elint-form(FORM ENV &optional NOHANDLER)
elint-forms(FORMS ENV)
elint-get-args(FUNC ENV)
elint-get-log-buffer()
elint-get-top-forms()
elint-init-env(FORMS)
elint-init-form(FORM)
elint-initialize(&optional REINIT)
elint-log(TYPE STRING ARGS)
elint-log-message(ERRSTR &optional TOP)
elint-make-env()
elint-make-top-form(FORM POS)
elint-match-args(ARGLIST ARGPATTERN)
elint-output(STRING)
elint-put-function-args(FUNC ARGS)
elint-require-form(FORM ENV)
elint-scan-doc-file()
elint-set-mode-line(&optional ON)
elint-top-form(FORM)
elint-top-form-form(TOP-FORM)
elint-top-form-pos(TOP-FORM)
elint-unbound-variable(VAR ENV)
elint-update-env()
elint-warning(STRING &rest ARGS)

Defined faces (0)