diff options
| author | Andreas Schwab | 2012-08-14 10:37:41 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2012-08-14 10:37:41 +0200 |
| commit | e5b19827faaff8168889c9cf3c8f746fd67e6991 (patch) | |
| tree | b729bb50a842775952bf5c9ae0127294b90ac1b4 | |
| parent | 56120d6f972c5e7830cd2df99b4c424f0c451ffd (diff) | |
| download | emacs-e5b19827faaff8168889c9cf3c8f746fd67e6991.tar.gz emacs-e5b19827faaff8168889c9cf3c8f746fd67e6991.zip | |
Fixes: debbugs:12197
* emacs-lisp/bytecomp.el (byte-recompile-file): When LOAD is
non-nil always load the compiled file if it exists.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 285e69d9db1..7232fa9f62b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-recompile-file): When LOAD is | ||
| 4 | non-nil always load the compiled file if it exists. (Bug#12197) | ||
| 5 | |||
| 1 | 2012-08-14 Chong Yidong <cyd@gnu.org> | 6 | 2012-08-14 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock. | 8 | * hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index e5df8dd112c..1e0ab336f41 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1632,7 +1632,7 @@ not* compile FILENAME. If ARG is 0, that means | |||
| 1632 | compile the file even if it has never been compiled before. | 1632 | compile the file even if it has never been compiled before. |
| 1633 | A nonzero ARG means ask the user. | 1633 | A nonzero ARG means ask the user. |
| 1634 | 1634 | ||
| 1635 | If LOAD is set, `load' the file after compiling. | 1635 | If LOAD is non-nil, `load' the file after compiling. |
| 1636 | 1636 | ||
| 1637 | The value returned is the value returned by `byte-compile-file', | 1637 | The value returned is the value returned by `byte-compile-file', |
| 1638 | or 'no-byte-compile if the file did not need recompilation." | 1638 | or 'no-byte-compile if the file did not need recompilation." |
| @@ -1665,7 +1665,8 @@ or 'no-byte-compile if the file did not need recompilation." | |||
| 1665 | (if (and noninteractive (not byte-compile-verbose)) | 1665 | (if (and noninteractive (not byte-compile-verbose)) |
| 1666 | (message "Compiling %s..." filename)) | 1666 | (message "Compiling %s..." filename)) |
| 1667 | (byte-compile-file filename load)) | 1667 | (byte-compile-file filename load)) |
| 1668 | (when load (load filename)) | 1668 | (when load |
| 1669 | (load (if (file-exists-p dest) dest filename))) | ||
| 1669 | 'no-byte-compile))) | 1670 | 'no-byte-compile))) |
| 1670 | 1671 | ||
| 1671 | ;;;###autoload | 1672 | ;;;###autoload |