save-buffer - Save contents of changed buffer to file
n save-buffer (C-x C-s)
save-buffer saves the contents of the current buffer if the contents have been changed, writing the buffer back to the file it was read from.
On saving the file, if time(2m) mode is enabled then the time stamp string is searched for in the file and modified if located, to reflect the modification date and time.
If backup(2m) mode is enabled then a backup copy of the file existing is created and the contents of the buffer are written to the file. Any automatic save copies of the file are deleted.
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
If auto(2m) mode is enabled the the file is written out in the style indicated by modes crlf(2m) and ctrlz(2m). Otherwise the file is written out in the style on the current platform.
The argument n can be used to change the default behavior of save-buffer described above, n is a bit based flag where:-
0x01
0x02
$auto-time(5), $timestamp(5), buffer-mode(2), find-file(2), narrow-buffer(2), save-some-buffers(2), undo(2), backup(2m), time(2m), undo(2m), narrow(2m), auto(2m), crlf(2m), ctrlz(2m), write-buffer(2), append-buffer(2).
(c) Copyright JASSPA 1999
Last Modified: 1998/07/10
Generated On: 1999/12/01