Commit bf01513f authored by Glenn Morris's avatar Glenn Morris
Browse files

(elint-file): Make max-lisp-eval-depth at least 1000.

(elint-add-required-env): Don't beep on error.
(elint-forms): In case of error, return ENV unchanged.
parent d85889e4
2009-09-12 Glenn Morris <rgm@gnu.org>
* emacs-lisp/elint.el (elint-file): Make max-lisp-eval-depth at least
1000.
(elint-add-required-env): Don't beep on error.
(elint-forms): In case of error, return ENV unchanged.
2009-09-12 Daiki Ueno <ueno@unixuser.org>
* epg.el (epg-make-context): Add autoload cookie.
......
......@@ -178,7 +178,8 @@ This environment can be passed to `macroexpand'."
;; elint-current-buffer clears log.
(with-temp-buffer
(insert-file-contents file)
(let ((buffer-file-name file))
(let ((buffer-file-name file)
(max-lisp-eval-depth (max 1000 max-lisp-eval-depth)))
(with-syntax-table emacs-lisp-mode-syntax-table
(mapc 'elint-top-form (elint-update-env)))))
(elint-set-mode-line)
......@@ -359,7 +360,6 @@ Return nil if there are no more forms, t otherwise."
;;(message "Elint processed (require '%s)" name))
(error "Unable to find require'd library %s" name)))
(error
(ding)
(message "Can't get variables from require'd library %s" name)))
env)
......@@ -461,7 +461,8 @@ The environment created by the form is returned."
(dolist (f forms env)
(setq env (elint-form f env)))
;; Loop macro?
(elint-error "Elint failed to parse form: %s" forms)))
(elint-error "Elint failed to parse form: %s" forms)
env))
(defun elint-unbound-variable (var env)
"T if VAR is unbound in ENV."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment