diff options
| author | Andrea Corallo | 2020-01-02 22:35:34 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-02 23:01:38 +0100 |
| commit | 25332bb0d396b79b37e6eaf96850ac560eaa55cd (patch) | |
| tree | b1254e144413fc9f54d0c68380c787bc973001bf | |
| parent | 3039c55642fbb2feb577e057ee167c2cedc12feb (diff) | |
| download | emacs-25332bb0d396b79b37e6eaf96850ac560eaa55cd.tar.gz emacs-25332bb0d396b79b37e6eaf96850ac560eaa55cd.zip | |
Fix bytecomp message when native compiling
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 19d9884c3fc..9278c92d819 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2035,10 +2035,12 @@ The value is non-nil if there were no errors, nil if errors." | |||
| 2035 | ;; recompiled). Previously this was accomplished by | 2035 | ;; recompiled). Previously this was accomplished by |
| 2036 | ;; deleting target-file before writing it. | 2036 | ;; deleting target-file before writing it. |
| 2037 | (if (and byte-native-compiling | 2037 | (if (and byte-native-compiling |
| 2038 | (not byte-native-always-write-elc)) | 2038 | (null byte-native-always-write-elc)) |
| 2039 | (delete-file tempfile) | 2039 | (delete-file tempfile) |
| 2040 | (rename-file tempfile target-file t))) | 2040 | (rename-file tempfile target-file t))) |
| 2041 | (or noninteractive (message "Wrote %s" target-file))) | 2041 | (or noninteractive |
| 2042 | byte-native-compiling | ||
| 2043 | (message "Wrote %s" target-file))) | ||
| 2042 | ;; This is just to give a better error message than write-region | 2044 | ;; This is just to give a better error message than write-region |
| 2043 | (let ((exists (file-exists-p target-file))) | 2045 | (let ((exists (file-exists-p target-file))) |
| 2044 | (signal (if exists 'file-error 'file-missing) | 2046 | (signal (if exists 'file-error 'file-missing) |