mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 08:10:21 -08:00
(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.
This commit is contained in:
parent
d85889e4c0
commit
bf01513fff
2 changed files with 11 additions and 3 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue