changeset 65515:1ebe69a133e6

(Saving): Mention write-region-inhibit-fsync.
author Romain Francoise <romain@orebokech.com>
date Wed, 14 Sep 2005 20:20:56 +0000
parents 845541eefcf1
children 5fd07f61ee51
files man/ChangeLog man/files.texi
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/man/ChangeLog	Wed Sep 14 20:20:18 2005 +0000
+++ b/man/ChangeLog	Wed Sep 14 20:20:56 2005 +0000
@@ -1,3 +1,7 @@
+2005-09-14  Romain Francoise  <romain@orebokech.com>
+
+	* files.texi (Saving): Mention write-region-inhibit-fsync.
+
 2005-09-05  Chong Yidong  <cyd@stupidchicken.com>
 
 	* custom.texi (Custom Themes): New node.
--- a/man/files.texi	Wed Sep 14 20:20:18 2005 +0000
+++ b/man/files.texi	Wed Sep 14 20:20:56 2005 +0000
@@ -502,6 +502,15 @@
 @code{mode-require-final-newline}.  By setting the latter variable,
 you can control how these modes handle final newlines.
 
+@vindex write-region-inhibit-fsync
+  When Emacs saves a file to disk, it issues an @code{fsync} call to the
+operating system to ensure that your data has indeed reached the media.
+This is important for safety if the system crashes or in case of power
+outage.  However, it can be disruptive on laptops using power saving
+because it forces the system to spin up the drive each time you save a
+file; the variable @code{write-region-inhibit-fsync} disables this
+synchronization.  This may result in data loss, use with care!
+
 @menu
 * Backup::              How Emacs saves the old version of your file.
 * Interlocking::        How Emacs protects against simultaneous editing