diff options
| author | Richard M. Stallman | 2001-12-12 22:53:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-12 22:53:16 +0000 |
| commit | c2efea2593f5f434c6b18d28e6352c6becccc596 (patch) | |
| tree | b97912859682fa59cf4bad5a400fdfb502413c65 | |
| parent | 8325c01e4ba922ee7d6bb60651c25db3b0adbbce (diff) | |
| download | emacs-c2efea2593f5f434c6b18d28e6352c6becccc596.tar.gz emacs-c2efea2593f5f434c6b18d28e6352c6becccc596.zip | |
(Fwrite_region): Doc fix.
| -rw-r--r-- | src/fileio.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c index 69a7ec82d88..12d0c358ef5 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4648,8 +4648,13 @@ choose_write_coding_system (start, end, filename, | |||
| 4648 | DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, | 4648 | DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, |
| 4649 | "r\nFWrite region to file: \ni\ni\ni\np", | 4649 | "r\nFWrite region to file: \ni\ni\ni\np", |
| 4650 | doc: /* Write current region into specified file. | 4650 | doc: /* Write current region into specified file. |
| 4651 | When called from a program, takes three arguments: | 4651 | When called from a program, requires three arguments: |
| 4652 | START, END and FILENAME. START and END are buffer positions. | 4652 | START, END and FILENAME. START and END are normally buffer positions |
| 4653 | specifying the part of the buffer to write. | ||
| 4654 | If START is nil, that means to use the entire buffer contents. | ||
| 4655 | If START is a string, then output that string to the file | ||
| 4656 | instead of any buffer contents; END is ignored. | ||
| 4657 | |||
| 4653 | Optional fourth argument APPEND if non-nil means | 4658 | Optional fourth argument APPEND if non-nil means |
| 4654 | append to existing file contents (if any). If it is an integer, | 4659 | append to existing file contents (if any). If it is an integer, |
| 4655 | seek to that offset in the file before writing. | 4660 | seek to that offset in the file before writing. |
| @@ -4669,8 +4674,6 @@ The optional seventh arg MUSTBENEW, if non-nil, insists on a check | |||
| 4669 | If MUSTBENEW is neither nil nor `excl', that means ask for | 4674 | If MUSTBENEW is neither nil nor `excl', that means ask for |
| 4670 | confirmation before overwriting, but do go ahead and overwrite the file | 4675 | confirmation before overwriting, but do go ahead and overwrite the file |
| 4671 | if the user confirms. | 4676 | if the user confirms. |
| 4672 | Kludgy feature: if START is a string, then that string is written | ||
| 4673 | to the file, instead of any buffer contents, and END is ignored. | ||
| 4674 | 4677 | ||
| 4675 | This does code conversion according to the value of | 4678 | This does code conversion according to the value of |
| 4676 | `coding-system-for-write', `buffer-file-coding-system', or | 4679 | `coding-system-for-write', `buffer-file-coding-system', or |