Improve multisession test results on MS-Windows
* lisp/emacs-lisp/multisession.el (multisession--backend-set-value): Force 'fsync'ing the temporary file.
This commit is contained in:
parent
efdfe22704
commit
ccb6028364
1 changed files with 2 additions and 1 deletions
|
@ -321,7 +321,8 @@ DOC should be a doc string, and ARGS are keywords as applicable to
|
|||
;; file for somewhat better atomicity.
|
||||
(let ((coding-system-for-write 'utf-8)
|
||||
(create-lockfiles nil)
|
||||
(temp (make-temp-name file)))
|
||||
(temp (make-temp-name file))
|
||||
(write-region-inhibit-fsync nil))
|
||||
(write-region (point-min) (point-max) temp nil 'silent)
|
||||
(set-file-times temp time)
|
||||
(rename-file temp file t)))
|
||||
|
|
Loading…
Add table
Reference in a new issue