diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-05 21:27:45 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-05 21:28:09 -0700 |
commit | 785a4a1d52fd7da3f3169fda26841341667c1661 (patch) | |
tree | 456a79a178ba18701ad5f0b5d5b9993414f1e27d /lisp/emacs-lisp/lisp-mode.el | |
parent | c0df64db08b58cdac37cb38c16f2ba2f097fae92 (diff) | |
download | emacs-785a4a1d52fd7da3f3169fda26841341667c1661.tar.gz emacs-785a4a1d52fd7da3f3169fda26841341667c1661.tar.bz2 emacs-785a4a1d52fd7da3f3169fda26841341667c1661.zip |
Fix a couple of make-temp-file races
* lisp/emacs-lisp/autoload.el (autoload--save-buffer):
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Use make-temp-file, not make-temp-name, to avoid an unlikely race
that could lose data. Remove the deletion hook as quickly as
possible after the file is renamed; though a race still remains
here, it is smaller than before.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions