diff options
| author | Stefan Monnier | 2013-02-25 18:27:50 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-02-25 18:27:50 -0500 |
| commit | 4c514b0f67f78de332c318fb4029b2bb4e4bff0a (patch) | |
| tree | 8a3dddcb736b821d28effe1a339b4ea328f2a1db | |
| parent | d9bb0d4811696c94affc751a2de1906d3b54baf9 (diff) | |
| download | emacs-4c514b0f67f78de332c318fb4029b2bb4e4bff0a.tar.gz emacs-4c514b0f67f78de332c318fb4029b2bb4e4bff0a.zip | |
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use let.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 6 |
2 files changed, 12 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d6de9baa118..f01ef60c35a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-02-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-file): Use let. | ||
| 4 | |||
| 1 | 2013-02-25 Juri Linkov <juri@jurta.org> | 5 | 2013-02-25 Juri Linkov <juri@jurta.org> |
| 2 | 6 | ||
| 3 | * replace.el (read-regexp): Let-bind `default' to the first | 7 | * replace.el (read-regexp): Let-bind `default' to the first |
| @@ -57,8 +61,8 @@ | |||
| 57 | (tramp-default-method): Adapt check for | 61 | (tramp-default-method): Adapt check for |
| 58 | `tramp-ssh-controlmaster-options'. | 62 | `tramp-ssh-controlmaster-options'. |
| 59 | 63 | ||
| 60 | * net/tramp-sh.el (tramp-methods): Replace | 64 | * net/tramp-sh.el (tramp-methods): |
| 61 | `tramp-ssh-controlmaster-template' by "%c". | 65 | Replace `tramp-ssh-controlmaster-template' by "%c". |
| 62 | (tramp-do-copy-or-rename-file-out-of-band) | 66 | (tramp-do-copy-or-rename-file-out-of-band) |
| 63 | (tramp-maybe-open-connection): Use it in format spec. Ensure, | 67 | (tramp-maybe-open-connection): Use it in format spec. Ensure, |
| 64 | that it is applied for the first hop only. | 68 | that it is applied for the first hop only. |
| @@ -80,8 +84,8 @@ | |||
| 80 | 84 | ||
| 81 | * net/tramp.el (tramp-tramp-file-p): Fix docstring. | 85 | * net/tramp.el (tramp-tramp-file-p): Fix docstring. |
| 82 | 86 | ||
| 83 | * net/tramp-sh.el (tramp-sh-handle-insert-directory): Handle | 87 | * net/tramp-sh.el (tramp-sh-handle-insert-directory): |
| 84 | multibyte file names. | 88 | Handle multibyte file names. |
| 85 | 89 | ||
| 86 | 2013-02-22 Glenn Morris <rgm@gnu.org> | 90 | 2013-02-22 Glenn Morris <rgm@gnu.org> |
| 87 | 91 | ||
| @@ -104,8 +108,8 @@ | |||
| 104 | 108 | ||
| 105 | 2013-02-21 Fabián Ezequiel Gallina <fgallina@cuca> | 109 | 2013-02-21 Fabián Ezequiel Gallina <fgallina@cuca> |
| 106 | 110 | ||
| 107 | * progmodes/python.el (python-info-current-defun): Enhance | 111 | * progmodes/python.el (python-info-current-defun): |
| 108 | match-data cluttering prevention. | 112 | Enhance match-data cluttering prevention. |
| 109 | 113 | ||
| 110 | 2013-02-21 Glenn Morris <rgm@gnu.org> | 114 | 2013-02-21 Glenn Morris <rgm@gnu.org> |
| 111 | 115 | ||
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." | |||
| 1781 | (when byte-compile-verbose | 1781 | (when byte-compile-verbose |
| 1782 | (message "Compiling %s..." filename)) | 1782 | (message "Compiling %s..." filename)) |
| 1783 | (setq byte-compiler-error-flag nil) | 1783 | (setq byte-compiler-error-flag nil) |
| 1784 | (setq byte-compile-level (1+ byte-compile-level)) | ||
| 1785 | ;; It is important that input-buffer not be current at this call, | 1784 | ;; It is important that input-buffer not be current at this call, |
| 1786 | ;; so that the value of point set in input-buffer | 1785 | ;; so that the value of point set in input-buffer |
| 1787 | ;; within byte-compile-from-buffer lingers in that buffer. | 1786 | ;; within byte-compile-from-buffer lingers in that buffer. |
| 1788 | (setq output-buffer | 1787 | (setq output-buffer |
| 1789 | (save-current-buffer | 1788 | (save-current-buffer |
| 1790 | (unwind-protect | 1789 | (let ((byte-compile-level (1+ byte-compile-level))) |
| 1791 | (byte-compile-from-buffer input-buffer) | 1790 | (byte-compile-from-buffer input-buffer)))) |
| 1792 | (setq byte-compile-level (1- byte-compile-level))))) | ||
| 1793 | (if byte-compiler-error-flag | 1791 | (if byte-compiler-error-flag |
| 1794 | nil | 1792 | nil |
| 1795 | (when byte-compile-verbose | 1793 | (when byte-compile-verbose |