Fix a couple more make-temp-file races
commit446e92548f932f18d57924573b49b5e6f4ae70c4
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2017 06:53:40 +0000 (6 23:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Aug 2017 06:54:05 +0000 (6 23:54 -0700)
treea051d1ddb9a9601eb687a91314f322b79669d305
parent6e2c0929bac8d3896d0472222cd3e6b77cb24c35
Fix a couple more make-temp-file races

* lisp/files.el (basic-save-buffer-2, move-file-to-trash):
Use make-temp-name, not make-temp-file with retry.
(basic-save-buffer-2): Use condition-case, instead of
unwind-protect with a success flag.
lisp/files.el