diff options
| author | Glenn Morris | 2014-01-23 19:51:52 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-01-23 19:51:52 -0800 |
| commit | 0db19d389097542c3db977e918ff219dabcecc43 (patch) | |
| tree | 2fa0e6f593fefad3d154b4857686d1c5d4dfe309 | |
| parent | ca5fd02c0640ab7e25bab877d86d0e0adac4985f (diff) | |
| download | emacs-0db19d389097542c3db977e918ff219dabcecc43.tar.gz emacs-0db19d389097542c3db977e918ff219dabcecc43.zip | |
* doc/lispref/files.texi (File Locks): Every platform supports locking now.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 13 |
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 @@ | |||
| 1 | 2014-01-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (File Locks): Every platform supports locking now. | ||
| 4 | |||
| 1 | 2014-01-22 Glenn Morris <rgm@gnu.org> | 5 | 2014-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 |
| 677 | to interfere with each other. Emacs tries to prevent this situation | 677 | to interfere with each other. Emacs tries to prevent this situation |
| 678 | from arising by recording a @dfn{file lock} when a file is being | 678 | from arising by recording a @dfn{file lock} when a file is being |
| 679 | modified. (File locks are not implemented on Microsoft systems.) | 679 | modified. |
| 680 | Emacs can then detect the first attempt to modify a buffer visiting a | 680 | Emacs can then detect the first attempt to modify a buffer visiting a |
| 681 | file that is locked by another Emacs job, and ask the user what to do. | 681 | file that is locked by another Emacs job, and ask the user what to do. |
| 682 | The file lock is really a file, a symbolic link with a special name, | 682 | The file lock is really a file, a symbolic link with a special name, |
| 683 | stored in the same directory as the file you are editing. | 683 | stored in the same directory as the file you are editing. (On file |
| 684 | systems 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 |
| 686 | you and another user will both lock the same file ``simultaneously''. | 687 | 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 | |||
| 719 | system does not support locking. | 720 | system 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 | ||
| 723 | support it, the functions @code{lock-buffer}, @code{unlock-buffer} and | ||
| 724 | @code{file-locked-p} do nothing and return @code{nil}. It is also | ||
| 725 | possible to disable locking, by setting the variable @code{create-lockfiles}. | ||
| 726 | |||
| 727 | @defopt create-lockfiles | 723 | @defopt create-lockfiles |
| 728 | If this variable is @code{nil}, Emacs does not lock files. | 724 | If 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 | ||
| 762 | If you wish, you can replace the @code{ask-user-about-lock} function | 758 | If you wish, you can replace the @code{ask-user-about-lock} function |
| 763 | with your own version that makes the decision in another way. The code | 759 | with your own version that makes the decision in another way. |
| 764 | for 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 |