From: Glenn Morris Date: Fri, 24 Jan 2014 03:51:52 +0000 (-0800) Subject: * doc/lispref/files.texi (File Locks): Every platform supports locking now. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~274 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0db19d389097542c3db977e918ff219dabcecc43;p=emacs.git * doc/lispref/files.texi (File Locks): Every platform supports locking now. --- diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index f5b2425581b..cbbf9127235 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,7 @@ +2014-01-24 Glenn Morris + + * files.texi (File Locks): Every platform supports locking now. + 2014-01-22 Glenn Morris * display.texi (ImageMagick Images): Expand on image-format-suffixes. diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 6f205ebe840..f6f1c7210bd 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -676,11 +676,12 @@ with-temp-buffer,, The Current Buffer}. When two users edit the same file at the same time, they are likely to interfere with each other. Emacs tries to prevent this situation from arising by recording a @dfn{file lock} when a file is being -modified. (File locks are not implemented on Microsoft systems.) +modified. Emacs can then detect the first attempt to modify a buffer visiting a file that is locked by another Emacs job, and ask the user what to do. The file lock is really a file, a symbolic link with a special name, -stored in the same directory as the file you are editing. +stored in the same directory as the file you are editing. (On file +systems that do not support symbolic links, a regular file is used.) When you access files using NFS, there may be a small probability that you and another user will both lock the same file ``simultaneously''. @@ -719,11 +720,6 @@ does nothing if the current buffer is not visiting a file, or if the system does not support locking. @end defun - File locking is not supported on some systems. On systems that do not -support it, the functions @code{lock-buffer}, @code{unlock-buffer} and -@code{file-locked-p} do nothing and return @code{nil}. It is also -possible to disable locking, by setting the variable @code{create-lockfiles}. - @defopt create-lockfiles If this variable is @code{nil}, Emacs does not lock files. @end defopt @@ -760,8 +756,7 @@ name of the user who has locked the file. @end itemize If you wish, you can replace the @code{ask-user-about-lock} function -with your own version that makes the decision in another way. The code -for its usual definition is in @file{userlock.el}. +with your own version that makes the decision in another way. @end defun @node Information about Files