diff options
| author | Glenn Morris | 2009-09-12 18:48:22 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-12 18:48:22 +0000 |
| commit | bf01513fff1644d22b7db6864de1539db7438c5a (patch) | |
| tree | 65fed17513b4a5a36af2f258f9e8f5c19a1934ac | |
| parent | d85889e4c0472cc465ffec8dfe9854d206f5f6a1 (diff) | |
| download | emacs-bf01513fff1644d22b7db6864de1539db7438c5a.tar.gz emacs-bf01513fff1644d22b7db6864de1539db7438c5a.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9a0cc52e5ac..aac2899a0ef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-09-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/elint.el (elint-file): Make max-lisp-eval-depth at least | ||
| 4 | 1000. | ||
| 5 | (elint-add-required-env): Don't beep on error. | ||
| 6 | (elint-forms): In case of error, return ENV unchanged. | ||
| 7 | |||
| 1 | 2009-09-12 Daiki Ueno <ueno@unixuser.org> | 8 | 2009-09-12 Daiki Ueno <ueno@unixuser.org> |
| 2 | 9 | ||
| 3 | * epg.el (epg-make-context): Add autoload cookie. | 10 | * epg.el (epg-make-context): Add autoload cookie. |
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index 32011f143f3..dcfc05ddd94 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -178,7 +178,8 @@ This environment can be passed to `macroexpand'." | |||
| 178 | ;; elint-current-buffer clears log. | 178 | ;; elint-current-buffer clears log. |
| 179 | (with-temp-buffer | 179 | (with-temp-buffer |
| 180 | (insert-file-contents file) | 180 | (insert-file-contents file) |
| 181 | (let ((buffer-file-name file)) | 181 | (let ((buffer-file-name file) |
| 182 | (max-lisp-eval-depth (max 1000 max-lisp-eval-depth))) | ||
| 182 | (with-syntax-table emacs-lisp-mode-syntax-table | 183 | (with-syntax-table emacs-lisp-mode-syntax-table |
| 183 | (mapc 'elint-top-form (elint-update-env))))) | 184 | (mapc 'elint-top-form (elint-update-env))))) |
| 184 | (elint-set-mode-line) | 185 | (elint-set-mode-line) |
| @@ -359,7 +360,6 @@ Return nil if there are no more forms, t otherwise." | |||
| 359 | ;;(message "Elint processed (require '%s)" name)) | 360 | ;;(message "Elint processed (require '%s)" name)) |
| 360 | (error "Unable to find require'd library %s" name))) | 361 | (error "Unable to find require'd library %s" name))) |
| 361 | (error | 362 | (error |
| 362 | (ding) | ||
| 363 | (message "Can't get variables from require'd library %s" name))) | 363 | (message "Can't get variables from require'd library %s" name))) |
| 364 | env) | 364 | env) |
| 365 | 365 | ||
| @@ -461,7 +461,8 @@ The environment created by the form is returned." | |||
| 461 | (dolist (f forms env) | 461 | (dolist (f forms env) |
| 462 | (setq env (elint-form f env))) | 462 | (setq env (elint-form f env))) |
| 463 | ;; Loop macro? | 463 | ;; Loop macro? |
| 464 | (elint-error "Elint failed to parse form: %s" forms))) | 464 | (elint-error "Elint failed to parse form: %s" forms) |
| 465 | env)) | ||
| 465 | 466 | ||
| 466 | (defun elint-unbound-variable (var env) | 467 | (defun elint-unbound-variable (var env) |
| 467 | "T if VAR is unbound in ENV." | 468 | "T if VAR is unbound in ENV." |