/[emacs]/emacs/src/fileio.c
ViewVC logotype

Diff of /emacs/src/fileio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.433 by rms, Tue Dec 11 22:19:44 2001 UTC revision 1.434 by rms, Wed Dec 12 22:53:16 2001 UTC
# Line 4648  choose_write_coding_system (start, end, Line 4648  choose_write_coding_system (start, end,
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.
# Line 4669  The optional seventh arg MUSTBENEW, if n Line 4674  The optional seventh arg MUSTBENEW, if n
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

Legend:
Removed from v.1.433  
changed lines
  Added in v.1.434

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26