aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fileio.c11
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,
4648DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, 4648DEFUN ("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.
4651When called from a program, takes three arguments: 4651When called from a program, requires three arguments:
4652START, END and FILENAME. START and END are buffer positions. 4652START, END and FILENAME. START and END are normally buffer positions
4653specifying the part of the buffer to write.
4654If START is nil, that means to use the entire buffer contents.
4655If START is a string, then output that string to the file
4656instead of any buffer contents; END is ignored.
4657
4653Optional fourth argument APPEND if non-nil means 4658Optional 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.
4672Kludgy feature: if START is a string, then that string is written
4673to the file, instead of any buffer contents, and END is ignored.
4674 4677
4675This does code conversion according to the value of 4678This 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