summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-09-11 12:33:52 -0700
committerGlenn Morris <rgm@gnu.org>2010-09-11 12:33:52 -0700
commit7eb662be2fef39f03c8e3f3ad1e9447716870644 (patch)
treefc4be294cc232909c110c15b23d6c97329e5982e /lisp/emacs-lisp/bytecomp.el
parent0f34ae289a051cb6e92b350f984c23502ff5929f (diff)
downloademacs-7eb662be2fef39f03c8e3f3ad1e9447716870644.tar.gz
emacs-7eb662be2fef39f03c8e3f3ad1e9447716870644.tar.bz2
emacs-7eb662be2fef39f03c8e3f3ad1e9447716870644.zip
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change.
Write out the name of the .elc file, rather than the temp-file.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 04bc254b319..8b47e0421e0 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1706,7 +1706,7 @@ The value is non-nil if there were no errors, nil if errors."
(tempfile (make-temp-name target-file)))
(if (memq system-type '(ms-dos 'windows-nt))
(setq buffer-file-type t))
- (write-region (point-min) (point-max) tempfile)
+ (write-region (point-min) (point-max) tempfile nil 1)
;; This has the intentional side effect that any
;; hard-links to target-file continue to
;; point to the old file (this makes it possible
@@ -1715,7 +1715,8 @@ The value is non-nil if there were no errors, nil if errors."
;; emacs-lisp files in the build tree are
;; recompiled). Previously this was accomplished by
;; deleting target-file before writing it.
- (rename-file tempfile target-file t))
+ (rename-file tempfile target-file t)
+ (message "Wrote %s" target-file))
;; This is just to give a better error message than write-region
(signal 'file-error
(list "Opening output file"