Exiting Emacs

You can exit from the editor in either of two ways: you can stop the current editor job and exit irreversibly, or you can temporarily suspend the current editor job. If you are finished with your session, you will probably want to exit irreversibly, as described in this section. If you want to temporarily halt your session, return to the command prompt, and later be able to resume your session, you should exit as described in the next section.

To exit from the editor irreversibly, type the following:

     ^x ^c
     

If you try to exit while you have a Prolog session running, the system displays the following message at the bottom of the screen:

     Active processes exist; kill them and exit anyway? (yes or no)
     

To end the Prolog session, type y or yes, and press <RET>. If you don't want to end the Prolog session, type n or no and press <RET> to abort the exit. Prolog will continue running.

If you try to exit and you have files that have been modified but not saved, you will receive a message at the bottom of the screen to prompt you to save each modified file.

If you want to save the files before you exit, type n and press <RET> to abort the exit. Move the cursor to the text window (if it's not already there), and use the ^x ^s command to save the information from the window into a file. If you want to exit without saving the modified information, type y and press <RET>, and you will be returned to the main operating system prompt.