summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-02-25 18:27:50 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-02-25 18:27:50 -0500
commit4c514b0f67f78de332c318fb4029b2bb4e4bff0a (patch)
tree8a3dddcb736b821d28effe1a339b4ea328f2a1db /lisp/emacs-lisp
parentd9bb0d4811696c94affc751a2de1906d3b54baf9 (diff)
downloademacs-4c514b0f67f78de332c318fb4029b2bb4e4bff0a.tar.gz
emacs-4c514b0f67f78de332c318fb4029b2bb4e4bff0a.tar.bz2
emacs-4c514b0f67f78de332c318fb4029b2bb4e4bff0a.zip
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use let.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index e0837033c74..5db1793a407 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1781,15 +1781,13 @@ The value is non-nil if there were no errors, nil if errors."
(when byte-compile-verbose
(message "Compiling %s..." filename))
(setq byte-compiler-error-flag nil)
- (setq byte-compile-level (1+ byte-compile-level))
;; It is important that input-buffer not be current at this call,
;; so that the value of point set in input-buffer
;; within byte-compile-from-buffer lingers in that buffer.
(setq output-buffer
(save-current-buffer
- (unwind-protect
- (byte-compile-from-buffer input-buffer)
- (setq byte-compile-level (1- byte-compile-level)))))
+ (let ((byte-compile-level (1+ byte-compile-level)))
+ (byte-compile-from-buffer input-buffer))))
(if byte-compiler-error-flag
nil
(when byte-compile-verbose