|Command||Prompt to Save Altered Buffers, Then:|
|F||return to current location|
|QF||If a program invoked with QE is running, raise the exception $abortProgramExcpt; otherwise, exit from MAINEDIT, continuation not allowed|
|-QF||exit from MAINEDIT and save context for continuation, if continuation possible|
When you type one of the F commands, MAINEDIT prompts on the message line for each buffer (except CMDLOG, if it exists; see Chapter 17) that you have altered since it was last saved (or marked as unaltered):
Write buffer FOO.BAR (Yes No Mark-as-unaltered)?
If you type Y or y in response, MAINEDIT attempts to write the buffer to its associated file. If you type N or n, MAINEDIT does not write the changes to the file. If you type M or m (for “Mark as unaltered”), MAINEDIT forgets that you have made any changes to the buffer. This option is not offered for QF.
Use of any of the F commands updates the eparms file.
When MAINEDIT attempts to write a buffer to its associated file and the file type does not support file version numbers, it first prompts whether to overwrite the existing file. If you choose not to do so, you may specify a new file name to which the buffer is to be written. The new file name becomes the file name associated with the buffer. If, for any reason, MAINEDIT cannot open for output a file that it is trying to write, it issues an error message to that effect, and offers you the option of typing <eol> to select a new file name, or <abort> to abort the current command.
QF blanks the screen upon exit.
-QF, on systems where it is supported, exits directly from MAINEDIT to the operating system without blanking the screen. On operating systems that permit it, the state of the MAINEDIT session is maintained, so that if an operating-system-dependent command is used to restart the MAINEDIT program, the edit session continues from the point at which it was suspended. When you continue MAINEDIT in this way, the screen is refreshed and the cursor positioned where it was when the -QF command was given.