]> git.eshelyaron.com Git - emacs.git/commitdiff
Doc tweaks related to file locking
authorGlenn Morris <rgm@gnu.org>
Wed, 26 Mar 2014 01:24:01 +0000 (21:24 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 26 Mar 2014 01:24:01 +0000 (21:24 -0400)
* doc/lispref/files.texi (File Locks): All systems support locking.

* src/filelock.c (Flock_buffer): Doc tweak.

doc/lispref/ChangeLog
doc/lispref/files.texi
src/ChangeLog
src/filelock.c

index 870d2dd5d37db5b9c5c1e410ca8c5fab70fc0961..71af1bc66a0289589276ced38b1c0722664cb198 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-26  Glenn Morris  <rgm@gnu.org>
+
+       * files.texi (File Locks): All systems support locking.
+
 2014-03-22  Glenn Morris  <rgm@gnu.org>
 
        * commands.texi (Defining Commands):
index 3818c18f57a4119749e2d020ec77cd4daacc2095..a00fa5b47952cc6e4a884360ba5d6697ebb34dc8 100644 (file)
@@ -709,15 +709,15 @@ some other job.
 This function locks the file @var{filename}, if the current buffer is
 modified.  The argument @var{filename} defaults to the current buffer's
 visited file.  Nothing is done if the current buffer is not visiting a
-file, or is not modified, or if the system does not support locking.
+file, or is not modified, or if the option @code{create-lockfiles} is
+@code{nil}.
 @end defun
 
 @defun unlock-buffer
 This function unlocks the file being visited in the current buffer,
 if the buffer is modified.  If the buffer is not modified, then
 the file should not be locked, so this function does nothing.  It also
-does nothing if the current buffer is not visiting a file, or if the
-system does not support locking.
+does nothing if the current buffer is not visiting a file, or is not locked.
 @end defun
 
 @defopt create-lockfiles
index 87c2d364b054b19a5d67d4e2c6f7908b9500146f..05c5b42ef90b9346821e8b81046a3412d923e91c 100644 (file)
@@ -1,5 +1,7 @@
 2014-03-26  Glenn Morris  <rgm@gnu.org>
 
+       * filelock.c (Flock_buffer): Doc tweak.
+
        * buffer.c (Frestore_buffer_modified_p, Fkill_buffer):
        * emacs.c (shut_down_emacs):
        * fileio.c (Finsert_file_contents, write_region):
index cc5c821caddde833f2ba370a0294cdcaad3320e0..f857c48814359a7e070b013947fe16dc07db44ef 100644 (file)
@@ -771,7 +771,9 @@ DEFUN ("lock-buffer", Flock_buffer, Slock_buffer,
        0, 1, 0,
        doc: /* Lock FILE, if current buffer is modified.
 FILE defaults to current buffer's visited file,
-or else nothing is done if current buffer isn't visiting a file.  */)
+or else nothing is done if current buffer isn't visiting a file.
+
+If the option `create-lockfiles' is nil, this does nothing.  */)
   (Lisp_Object file)
 {
   if (NILP (file))