3.5.2 Saving files
 Save FileEditor Command
  - Arguments: None
Key sequence:Ctrl+X Ctrl+S  
editor:save-file-command p &optional buffer
  - Saves the contents of the current buffer to the associated file. If there is no associated file, one is created with the same name as the buffer, and written in the same encoding as specified by the editor variable
Output-Format-Default, or as defaulted byopen if this isnil.  - The argument buffer is the buffer to be saved in its associated file. The default is the current buffer. 
 
 Save All FilesEditor Command
  - Arguments: None
Key sequence:Ctrl+X S  - A Save Buffers window is displayed asking whether each modified buffer is to be saved. If a buffer has no associated file it is ignored, even if it is modified. 
 
 Write File Editor Command
  - Arguments: pathname
Key sequence:Ctrl+X Ctrl+Wpathname  
editor:write-file-command p &optional pathname buffer
  - Writes the contents of the current buffer to the file defined by pathname. If the file already exists, it is overwritten. If the file does not exist, it is created. The buffer then becomes associated with the new file. 
 - The argument buffer is the name of the buffer whose contents are to be written. The default is the current buffer. 
 
 Write Region Editor Command
  - Arguments: pathname
Key sequence: None  
editor:write-region-command p &optional pathname
  - Writes the region between the mark and the current point to the file defined by pathname. If the file already exists, it is overwritten. If the file does not exist, it is created. 
 
 Backup File Editor Command
  - Arguments: pathname
Key sequence: None  - Writes the contents of the current buffer to the file defined by pathname. If the file already exists, it is overwritten. If it does not exist, it is created. 
 - In contrast with
Write File, no change is made concerning the file associated with the current buffer as this command is only intended to be used to write the contents of the current buffer to a backup file.  
 Save All Files and ExitEditor Command
  - Arguments: None
Key sequence:Ctrl+X Ctrl+C  - A Save Buffer window is displayed asking whether each modified buffer is to be saved. If a buffer has no associated file it is ignored, even if it is modified (this operates just like
Save All Files). When all the required buffers have been saved LispWorks is exited, although confirmation is asked for first.  
 Add-Newline-at-EOF-on-Writing-FileEditor Variable
  - Default value:
:ask-user  - If the value of this variable is
t, a newline is automatically added to the end of any file that lacks one when the file is being saved. If its value isnil, no newline is added in this way.  - Its default value is
:ask-user, so the user is prompted about adding the newline when necessary.