write-buffer - Write contents of buffer to named (new) file
n write-buffer "file-name" (C-x C-w)
write-buffer is used to write the contents of the buffer to a NEW file, use save-buffer(2) if the buffer is to be written to the existing file already associated with the buffer.
write-buffer writes the contents of the current buffer to the named file file-name. The action of the write also changes the file name associated with the current buffer to the new file name.
Unlike append-buffer(2), write-buffer always replaces an existing file and the new file inherits the buffers file characteristics instead of the old file's.
If the buffer contains a narrow(2m) it will automatically be removed before saving so that the whole buffer is saved and restored when saving is complete
The argument n may be used to change the default behavior of write-buffer described above, n is a bit based flag where:-
undo(2) information may be discarded when the file is written.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2005/02/13
Generated On: 2006/10/07