Commit e7662099 authored by Richard M. Stallman's avatar Richard M. Stallman

Better info about C-z vs C-x C-c.

parent beeab9cb
...@@ -512,21 +512,24 @@ editing and get rid of Emacs. The command to do this is C-x C-c. ...@@ -512,21 +512,24 @@ editing and get rid of Emacs. The command to do this is C-x C-c.
(Don't worry; it offers to save each changed file before it kills the (Don't worry; it offers to save each changed file before it kills the
Emacs.) Emacs.)
C-z is the usual way to exit Emacs, because it is always better not to C-z is the command to exit Emacs *temporarily*--so that you can go
kill the Emacs if you are going to do any more editing. On systems back to the same Emacs session afterward.
which allow it, C-z exits from Emacs to the shell but does not destroy
the Emacs; if you use the C shell, you can resume Emacs with the `fg' On systems which allow it, C-z exits from Emacs to the shell but does
command (or, more generally, with `%emacs', which works even if your not destroy the Emacs; if you use the C shell, you can resume Emacs
most recent job was some other). On systems where suspending is not with the `fg' command (or, more generally, with `%emacs', which works
possible, C-z creates a subshell running under Emacs to give you the even if your most recent job was some other). On systems which don't
chance to run other programs and return to Emacs afterward, but it implement suspending, C-z creates a subshell running under Emacs to
does not truly "exit" from Emacs. In this case, the shell command give you the chance to run other programs and return to Emacs
`exit' is the usual way to get back to Emacs from the subshell. afterward; it does not truly "exit" from Emacs. In this case, the
shell command `exit' is the usual way to get back to Emacs from the
You would use C-x C-c if you were about to log out. You would subshell.
also use it to exit an Emacs invoked under mail handling programs
and other random utilities, since they may not believe you have The time to use C-x C-c is when you are about to log out. It's also
really finished using the Emacs if it continues to exist. the right thing to use to exit an Emacs invoked under mail handling
programs and other random utilities, since they may not know how to
cope with suspension of Emacs. On other occasions, use C-z, and
resume the Emacs when you have more editing to do.
There are many C-x commands. The ones you know are: There are many C-x commands. The ones you know are:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment