]> code.delx.au - gnu-emacs/commitdiff
(Saving): Mention write-region-inhibit-fsync.
authorRomain Francoise <romain@orebokech.com>
Wed, 14 Sep 2005 20:20:56 +0000 (20:20 +0000)
committerRomain Francoise <romain@orebokech.com>
Wed, 14 Sep 2005 20:20:56 +0000 (20:20 +0000)
man/ChangeLog
man/files.texi

index 69cf7458a7a7e6a817ff4c69b70c89e284ea89fc..d4021e1428a10cba25aec79a959ac4325dbf0b63 100644 (file)
@@ -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.
index 912fc6f7bf9a31b871524b14445f6f59470325c6..b8e8d60c2f905821c41422fecdcadf0ee6fa94b2 100644 (file)
@@ -502,6 +502,15 @@ variable @code{require-final-newline} according to
 @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