# HG changeset patch # User Glenn Morris # Date 1284233632 25200 # Node ID 9ac0232d85db5fdf5852e283a14f77d2b512a542 # Parent 6388b1d1793a43578ea0aa8c2f5f85659ebe95c6 * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Tweak previous change. Write out the name of the .elc file, rather than the temp-file. diff -r 6388b1d1793a -r 9ac0232d85db lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Sat Sep 11 11:52:04 2010 -0700 +++ b/lisp/emacs-lisp/bytecomp.el Sat Sep 11 12:33:52 2010 -0700 @@ -1706,7 +1706,7 @@ (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 @@ ;; 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"