aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-01-23 19:51:52 -0800
committerGlenn Morris2014-01-23 19:51:52 -0800
commit0db19d389097542c3db977e918ff219dabcecc43 (patch)
tree2fa0e6f593fefad3d154b4857686d1c5d4dfe309
parentca5fd02c0640ab7e25bab877d86d0e0adac4985f (diff)
downloademacs-0db19d389097542c3db977e918ff219dabcecc43.tar.gz
emacs-0db19d389097542c3db977e918ff219dabcecc43.zip
* doc/lispref/files.texi (File Locks): Every platform supports locking now.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/files.texi13
2 files changed, 8 insertions, 9 deletions
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 @@
12014-01-24 Glenn Morris <rgm@gnu.org>
2
3 * files.texi (File Locks): Every platform supports locking now.
4
12014-01-22 Glenn Morris <rgm@gnu.org> 52014-01-22 Glenn Morris <rgm@gnu.org>
2 6
3 * display.texi (ImageMagick Images): Expand on image-format-suffixes. 7 * 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}.
676 When two users edit the same file at the same time, they are likely 676 When two users edit the same file at the same time, they are likely
677to interfere with each other. Emacs tries to prevent this situation 677to interfere with each other. Emacs tries to prevent this situation
678from arising by recording a @dfn{file lock} when a file is being 678from arising by recording a @dfn{file lock} when a file is being
679modified. (File locks are not implemented on Microsoft systems.) 679modified.
680Emacs can then detect the first attempt to modify a buffer visiting a 680Emacs can then detect the first attempt to modify a buffer visiting a
681file that is locked by another Emacs job, and ask the user what to do. 681file that is locked by another Emacs job, and ask the user what to do.
682The file lock is really a file, a symbolic link with a special name, 682The file lock is really a file, a symbolic link with a special name,
683stored in the same directory as the file you are editing. 683stored in the same directory as the file you are editing. (On file
684systems that do not support symbolic links, a regular file is used.)
684 685
685 When you access files using NFS, there may be a small probability that 686 When you access files using NFS, there may be a small probability that
686you and another user will both lock the same file ``simultaneously''. 687you 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
719system does not support locking. 720system does not support locking.
720@end defun 721@end defun
721 722
722 File locking is not supported on some systems. On systems that do not
723support it, the functions @code{lock-buffer}, @code{unlock-buffer} and
724@code{file-locked-p} do nothing and return @code{nil}. It is also
725possible to disable locking, by setting the variable @code{create-lockfiles}.
726
727@defopt create-lockfiles 723@defopt create-lockfiles
728If this variable is @code{nil}, Emacs does not lock files. 724If this variable is @code{nil}, Emacs does not lock files.
729@end defopt 725@end defopt
@@ -760,8 +756,7 @@ name of the user who has locked the file.
760@end itemize 756@end itemize
761 757
762If you wish, you can replace the @code{ask-user-about-lock} function 758If you wish, you can replace the @code{ask-user-about-lock} function
763with your own version that makes the decision in another way. The code 759with your own version that makes the decision in another way.
764for its usual definition is in @file{userlock.el}.
765@end defun 760@end defun
766 761
767@node Information about Files 762@node Information about Files