diff options
| author | Noah Friedman | 2010-11-02 15:51:25 -0700 |
|---|---|---|
| committer | Noah Friedman | 2010-11-02 15:51:25 -0700 |
| commit | fa14dc18009a53f217466263d04e53b2be98cbfa (patch) | |
| tree | f63be1171dde5a46ded6bea06ad04cd637da52d6 | |
| parent | 14782c5968660699138da8088864d7d68f943d95 (diff) | |
| download | emacs-fa14dc18009a53f217466263d04e53b2be98cbfa.tar.gz emacs-fa14dc18009a53f217466263d04e53b2be98cbfa.zip | |
(byte-recompile-file): If bytecomp-arg is nil, do not ask to recompile files that are not already compiled, and do not recompile them.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 239f50c3c80..c5d8bfae7a7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-02 Noah Friedman <friedman@splode.com> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-recompile-file): If bytecomp-arg is | ||
| 4 | nil, do not ask to recompile files that are not already compiled, | ||
| 5 | and do not recompile them. | ||
| 6 | |||
| 1 | 2010-11-02 Chong Yidong <cyd@stupidchicken.com> | 7 | 2010-11-02 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * emacs-lisp/package.el (package-initialize): Ensure that | 9 | * emacs-lisp/package.el (package-initialize): Ensure that |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 952b69f7ce3..aec6bdb2f35 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1626,9 +1626,10 @@ or 'no-byte-compile if the file did not need recompilation." | |||
| 1626 | (or bytecomp-force | 1626 | (or bytecomp-force |
| 1627 | (file-newer-than-file-p bytecomp-filename | 1627 | (file-newer-than-file-p bytecomp-filename |
| 1628 | bytecomp-dest)) | 1628 | bytecomp-dest)) |
| 1629 | (or (eq 0 bytecomp-arg) | 1629 | (and bytecomp-arg |
| 1630 | (y-or-n-p (concat "Compile " | 1630 | (or (eq 0 bytecomp-arg) |
| 1631 | bytecomp-filename "? ")))) | 1631 | (y-or-n-p (concat "Compile " |
| 1632 | bytecomp-filename "? "))))) | ||
| 1632 | (progn | 1633 | (progn |
| 1633 | (if (and noninteractive (not byte-compile-verbose)) | 1634 | (if (and noninteractive (not byte-compile-verbose)) |
| 1634 | (message "Compiling %s..." bytecomp-filename)) | 1635 | (message "Compiling %s..." bytecomp-filename)) |