write-region - Write contents of region to named (new) file
n write-region "file-name"
write-region is used to write the contents of a selected region of a buffer to a NEW file i.e. where the region exists between point and mark.
write-buffer writes the contents of the current region 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.
If the region contains a narrow(2m) it will automatically be removed before saving so that the whole region is saved and restored when saving is complete.
The argument n may be used to change the default behavior of write-region described above, n is a bit based flag where:-
undo(2) information may be discarded when the file is written.
write-region is a macro defined in misc.emf, this macro was used as an example for Writing MicroEmacs Macros.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2005/02/13
Generated On: 2006/10/07