Variable: write-region-inhibit-fsync
write-region-inhibit-fsync is a variable defined in fileio.c.
Value
t
Documentation
Non-nil means don't call fsync in write-region.
This variable affects calls to write-region as well as save commands.
Setting this to nil may avoid data loss if the system loses power or
the operating system crashes. By default, it is non-nil in batch mode.
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/fileio.c
DEFVAR_BOOL ("write-region-inhibit-fsync", write_region_inhibit_fsync,
doc: /* Non-nil means don't call fsync in `write-region'.
This variable affects calls to `write-region' as well as save commands.
Setting this to nil may avoid data loss if the system loses power or
the operating system crashes. By default, it is non-nil in batch mode. */);