4648 |
DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, |
DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, |
4649 |
"r\nFWrite region to file: \ni\ni\ni\np", |
"r\nFWrite region to file: \ni\ni\ni\np", |
4650 |
doc: /* Write current region into specified file. |
doc: /* Write current region into specified file. |
4651 |
When called from a program, takes three arguments: |
When called from a program, requires three arguments: |
4652 |
START, END and FILENAME. START and END are buffer positions. |
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 |
|
|
4658 |
Optional fourth argument APPEND if non-nil means |
Optional fourth argument APPEND if non-nil means |
4659 |
append to existing file contents (if any). If it is an integer, |
append to existing file contents (if any). If it is an integer, |
4660 |
seek to that offset in the file before writing. |
seek to that offset in the file before writing. |
4674 |
If MUSTBENEW is neither nil nor `excl', that means ask for |
If MUSTBENEW is neither nil nor `excl', that means ask for |
4675 |
confirmation before overwriting, but do go ahead and overwrite the file |
confirmation before overwriting, but do go ahead and overwrite the file |
4676 |
if the user confirms. |
if the user confirms. |
|
Kludgy feature: if START is a string, then that string is written |
|
|
to the file, instead of any buffer contents, and END is ignored. |
|
4677 |
|
|
4678 |
This does code conversion according to the value of |
This does code conversion according to the value of |
4679 |
`coding-system-for-write', `buffer-file-coding-system', or |
`coding-system-for-write', `buffer-file-coding-system', or |