• Glenn Morris's avatar
    (elint-standard-variables): Remove most members, · e2d5a67f
    Glenn Morris authored
    since the next two variables cover them automatically now.
    (elint-builtin-variables, elint-autoloaded-variables): New.
    (elint-unknown-builtin-args): Remove all members, since they can be
    parsed automatically now.
    (elint-extra-errors): New.
    (elint-env-add-env, elint-env-add-macro): Use cadr.
    (elint-current-buffer): Use or.  Change final message.
    (elint-get-top-forms): Use line-end-position.
    (elint-init-env): Use cadr.  Handle autoload, declare-function,
    and defalias.
    (elint-add-required-env): Doc fix.  Use or.  Standardize error.
    (regexp-assoc): Remove unused function.
    (elint-top-form): Set elint-current-pos, to record the start of the
    top-level form, for compilation-mode.
    (elint-form): Trap errors in macro expansion.  Use dolist.
    (elint-unbound-variable): Use elint-builtin-variables and
    elint-autoloaded-variables.
    (elint-get-args): Use cadr, or.
    (elint-check-cond-form): Use dolist, cadr.
    (elint-check-condition-case-form): Doc fix.  Use cadr.
    Use elint-extra-errors.
    (elint-log): New function.
    (elint-error, elint-warning): Use elint-log for a bytecomp-style format.
    Distinguish errors and warnings.
    (elint-log-message): Use with-current-buffer.  Inhibit read-only.
    Use a bytecomp-style format.
    (elint-clear-log): Preserve default-directory.  Inhibit read-only.
    (elint-get-log-buffer): Use compilation mode.  Disable undo.
    Don't truncate lines.
    (elint-initialize): Set builtin and autoloaded variable lists.
    Only process elint-unknown-builtin-args if non-nil.
    (elint-find-builtin-variables, elint-find-autoloaded-variables):
    New functions.
    (elint-find-builtin-args): Doc fix.  Handle "BODY...)".
    e2d5a67f
elint.el 22.9 KB