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-variables | List of ‘loaddefs.el’ variables. Set by ‘elint-initialize’. |
elint-bound-function | Name of a temporarily bound function symbol. |
elint-bound-variable | Name of a temporarily bound symbol. |
elint-buffer-env | The environment of an elisp buffer. |
elint-buffer-forms | The top forms in a buffer. |
elint-builtin-variables | List of built-in variables. Set by ‘elint-initialize’. |
elint-directory-skip-re | If non-nil, a regexp matching files to skip when linting a directory. |
elint-extra-errors | Errors without ‘error-message’ or ‘error-conditions’ properties. |
elint-features | List of all libraries this buffer has required, or that have been provided. |
elint-ignored-warnings | If non-nil, a list of issue types that Elint should ignore. |
elint-last-env-time | The last time the buffers env was updated. |
elint-log-buffer | The buffer in which to log lint messages. |
elint-preloaded-env | Environment defined by the preloaded (dumped) Lisp files. |
elint-preloaded-skip-re | Regexp matching elements of ‘preloaded-file-list’ to ignore. |
elint-scan-preloaded | Non-nil means to scan ‘preloaded-file-list’ when initializing. |
elint-special-forms | Functions to call when some special form should be linted. |
elint-standard-variables | Standard variables, excluding ‘elint-builtin-variables’. |
elint-top-form | The currently linted top form, or nil. |
elint-top-form-logged | Non-nil if the currently linted top form has been mentioned in the log buffer. |
elint-unknown-builtin-args | Those built-ins for which we can’t find arguments, if any. |