diff options
| author | Glenn Morris | 2014-03-25 21:24:01 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-03-25 21:24:01 -0400 |
| commit | 0b4fe0787b957624ebffa5d123c69d5c0a5d69e2 (patch) | |
| tree | e7c0c080c938e0f64eeb8e692473f74d3dd913fd | |
| parent | 11ee65afc20d41f1fc31fe2ead84b2203b4bfeb0 (diff) | |
| download | emacs-0b4fe0787b957624ebffa5d123c69d5c0a5d69e2.tar.gz emacs-0b4fe0787b957624ebffa5d123c69d5c0a5d69e2.zip | |
Doc tweaks related to file locking
* doc/lispref/files.texi (File Locks): All systems support locking.
* src/filelock.c (Flock_buffer): Doc tweak.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 6 | ||||
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/filelock.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 870d2dd5d37..71af1bc66a0 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-03-26 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (File Locks): All systems support locking. | ||
| 4 | |||
| 1 | 2014-03-22 Glenn Morris <rgm@gnu.org> | 5 | 2014-03-22 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * commands.texi (Defining Commands): | 7 | * commands.texi (Defining Commands): |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 3818c18f57a..a00fa5b4795 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -709,15 +709,15 @@ some other job. | |||
| 709 | This function locks the file @var{filename}, if the current buffer is | 709 | This function locks the file @var{filename}, if the current buffer is |
| 710 | modified. The argument @var{filename} defaults to the current buffer's | 710 | modified. The argument @var{filename} defaults to the current buffer's |
| 711 | visited file. Nothing is done if the current buffer is not visiting a | 711 | visited file. Nothing is done if the current buffer is not visiting a |
| 712 | file, or is not modified, or if the system does not support locking. | 712 | file, or is not modified, or if the option @code{create-lockfiles} is |
| 713 | @code{nil}. | ||
| 713 | @end defun | 714 | @end defun |
| 714 | 715 | ||
| 715 | @defun unlock-buffer | 716 | @defun unlock-buffer |
| 716 | This function unlocks the file being visited in the current buffer, | 717 | This function unlocks the file being visited in the current buffer, |
| 717 | if the buffer is modified. If the buffer is not modified, then | 718 | if the buffer is modified. If the buffer is not modified, then |
| 718 | the file should not be locked, so this function does nothing. It also | 719 | the file should not be locked, so this function does nothing. It also |
| 719 | does nothing if the current buffer is not visiting a file, or if the | 720 | does nothing if the current buffer is not visiting a file, or is not locked. |
| 720 | system does not support locking. | ||
| 721 | @end defun | 721 | @end defun |
| 722 | 722 | ||
| 723 | @defopt create-lockfiles | 723 | @defopt create-lockfiles |
diff --git a/src/ChangeLog b/src/ChangeLog index 87c2d364b05..05c5b42ef90 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2014-03-26 Glenn Morris <rgm@gnu.org> | 1 | 2014-03-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * filelock.c (Flock_buffer): Doc tweak. | ||
| 4 | |||
| 3 | * buffer.c (Frestore_buffer_modified_p, Fkill_buffer): | 5 | * buffer.c (Frestore_buffer_modified_p, Fkill_buffer): |
| 4 | * emacs.c (shut_down_emacs): | 6 | * emacs.c (shut_down_emacs): |
| 5 | * fileio.c (Finsert_file_contents, write_region): | 7 | * fileio.c (Finsert_file_contents, write_region): |
diff --git a/src/filelock.c b/src/filelock.c index cc5c821cadd..f857c488143 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -771,7 +771,9 @@ DEFUN ("lock-buffer", Flock_buffer, Slock_buffer, | |||
| 771 | 0, 1, 0, | 771 | 0, 1, 0, |
| 772 | doc: /* Lock FILE, if current buffer is modified. | 772 | doc: /* Lock FILE, if current buffer is modified. |
| 773 | FILE defaults to current buffer's visited file, | 773 | FILE defaults to current buffer's visited file, |
| 774 | or else nothing is done if current buffer isn't visiting a file. */) | 774 | or else nothing is done if current buffer isn't visiting a file. |
| 775 | |||
| 776 | If the option `create-lockfiles' is nil, this does nothing. */) | ||
| 775 | (Lisp_Object file) | 777 | (Lisp_Object file) |
| 776 | { | 778 | { |
| 777 | if (NILP (file)) | 779 | if (NILP (file)) |