diff options
| author | Glenn Morris | 2012-05-09 20:58:16 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-05-09 20:58:16 -0400 |
| commit | dc0f75c82c55b14e29878c622fc9d2f18cf7a3dd (patch) | |
| tree | 0f3f513cd4454e305349c5aea19e6acdc9984e76 | |
| parent | 836d29b3704d0dc40411715fc0a9f3a708a8f8ad (diff) | |
| download | emacs-dc0f75c82c55b14e29878c622fc9d2f18cf7a3dd.tar.gz emacs-dc0f75c82c55b14e29878c622fc9d2f18cf7a3dd.zip | |
Document new create-lockfiles option
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 7 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
5 files changed, 23 insertions, 1 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 80d9381ec42..95db7194053 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-05-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (Interlocking): Mention create-lockfiles option. | ||
| 4 | |||
| 1 | 2012-05-09 Chong Yidong <cyd@gnu.org> | 5 | 2012-05-09 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * frames.texi (Mouse References, Mouse Commands): Fix index | 7 | * frames.texi (Mouse References, Mouse Commands): Fix index |
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 31883a1f5cc..088c3ce29a7 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -739,6 +739,11 @@ directory.) Emacs removes the lock when you save the changes. The | |||
| 739 | idea is that the file is locked whenever an Emacs buffer visiting it | 739 | idea is that the file is locked whenever an Emacs buffer visiting it |
| 740 | has unsaved changes. | 740 | has unsaved changes. |
| 741 | 741 | ||
| 742 | @vindex create-lockfiles | ||
| 743 | You can prevent the creation of lock files by setting the variable | ||
| 744 | @code{create-lockfiles} to @code{nil}. @strong{Caution:} by | ||
| 745 | doing so you will lose the benefits that this feature provides. | ||
| 746 | |||
| 742 | @cindex collision | 747 | @cindex collision |
| 743 | If you begin to modify the buffer while the visited file is locked by | 748 | If you begin to modify the buffer while the visited file is locked by |
| 744 | someone else, this constitutes a @dfn{collision}. When Emacs detects a | 749 | someone else, this constitutes a @dfn{collision}. When Emacs detects a |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1b9fa0991e4..2967e644558 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-05-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (File Locks): Mention create-lockfiles option. | ||
| 4 | |||
| 1 | 2012-05-09 Glenn Morris <rgm@gnu.org> | 5 | 2012-05-09 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * vol1.texi, vol2.texi: Remove files. | 7 | * vol1.texi, vol2.texi: Remove files. |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 1756e56bd2a..2ee80504b60 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -726,7 +726,12 @@ system does not support locking. | |||
| 726 | 726 | ||
| 727 | File locking is not supported on some systems. On systems that do not | 727 | File locking is not supported on some systems. On systems that do not |
| 728 | support it, the functions @code{lock-buffer}, @code{unlock-buffer} and | 728 | support it, the functions @code{lock-buffer}, @code{unlock-buffer} and |
| 729 | @code{file-locked-p} do nothing and return @code{nil}. | 729 | @code{file-locked-p} do nothing and return @code{nil}. It is also |
| 730 | possible to disable locking, by setting the variable @code{create-lockfiles}. | ||
| 731 | |||
| 732 | @defopt create-lockfiles | ||
| 733 | If this variable is @code{nil}, Emacs does not lock files. | ||
| 734 | @end defopt | ||
| 730 | 735 | ||
| 731 | @defun ask-user-about-lock file other-user | 736 | @defun ask-user-about-lock file other-user |
| 732 | This function is called when the user tries to modify @var{file}, but it | 737 | This function is called when the user tries to modify @var{file}, but it |
| @@ -65,6 +65,10 @@ ImageMagick to view images, set | |||
| 65 | frames, if emacsclient is only told to open a new frame without | 65 | frames, if emacsclient is only told to open a new frame without |
| 66 | specifying any file to visit or expression to evaluate. | 66 | specifying any file to visit or expression to evaluate. |
| 67 | 67 | ||
| 68 | +++ | ||
| 69 | ** You can prevent the creation of lock files by setting `create-lockfiles' | ||
| 70 | to nil. Use with caution, and only if you really need to. | ||
| 71 | |||
| 68 | ** Using "unibyte: t" in Lisp source files is obsolete. | 72 | ** Using "unibyte: t" in Lisp source files is obsolete. |
| 69 | Use "coding: raw-text" instead. | 73 | Use "coding: raw-text" instead. |
| 70 | 74 | ||