Mercurial > emacs
comparison etc/TUTORIAL @ 9560:4217123670e2
Better info about C-z vs C-x C-c.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 17 Oct 1994 04:17:33 +0000 |
parents | 027fb17a2952 |
children | 9dc3f4fc6b7f |
comparison
equal
deleted
inserted
replaced
9559:f3c3bedd897f | 9560:4217123670e2 |
---|---|
510 Another example is the command to tell Emacs that you'd like to stop | 510 Another example is the command to tell Emacs that you'd like to stop |
511 editing and get rid of Emacs. The command to do this is C-x C-c. | 511 editing and get rid of Emacs. The command to do this is C-x C-c. |
512 (Don't worry; it offers to save each changed file before it kills the | 512 (Don't worry; it offers to save each changed file before it kills the |
513 Emacs.) | 513 Emacs.) |
514 | 514 |
515 C-z is the usual way to exit Emacs, because it is always better not to | 515 C-z is the command to exit Emacs *temporarily*--so that you can go |
516 kill the Emacs if you are going to do any more editing. On systems | 516 back to the same Emacs session afterward. |
517 which allow it, C-z exits from Emacs to the shell but does not destroy | 517 |
518 the Emacs; if you use the C shell, you can resume Emacs with the `fg' | 518 On systems which allow it, C-z exits from Emacs to the shell but does |
519 command (or, more generally, with `%emacs', which works even if your | 519 not destroy the Emacs; if you use the C shell, you can resume Emacs |
520 most recent job was some other). On systems where suspending is not | 520 with the `fg' command (or, more generally, with `%emacs', which works |
521 possible, C-z creates a subshell running under Emacs to give you the | 521 even if your most recent job was some other). On systems which don't |
522 chance to run other programs and return to Emacs afterward, but it | 522 implement suspending, C-z creates a subshell running under Emacs to |
523 does not truly "exit" from Emacs. In this case, the shell command | 523 give you the chance to run other programs and return to Emacs |
524 `exit' is the usual way to get back to Emacs from the subshell. | 524 afterward; it does not truly "exit" from Emacs. In this case, the |
525 | 525 shell command `exit' is the usual way to get back to Emacs from the |
526 You would use C-x C-c if you were about to log out. You would | 526 subshell. |
527 also use it to exit an Emacs invoked under mail handling programs | 527 |
528 and other random utilities, since they may not believe you have | 528 The time to use C-x C-c is when you are about to log out. It's also |
529 really finished using the Emacs if it continues to exist. | 529 the right thing to use to exit an Emacs invoked under mail handling |
530 programs and other random utilities, since they may not know how to | |
531 cope with suspension of Emacs. On other occasions, use C-z, and | |
532 resume the Emacs when you have more editing to do. | |
530 | 533 |
531 There are many C-x commands. The ones you know are: | 534 There are many C-x commands. The ones you know are: |
532 | 535 |
533 C-x C-f Find file. | 536 C-x C-f Find file. |
534 C-x C-s Save file. | 537 C-x C-s Save file. |