Mercurial > emacs
comparison etc/TUTORIAL @ 72517:873ae07c54d4
Give priority to graphical terminals over text terminals regarding C-z.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 25 Aug 2006 20:27:58 +0000 |
parents | 76da1d56a574 |
children | a2bfb826940c 6823a91487f2 |
comparison
equal
deleted
inserted
replaced
72516:aba79a1f03ed | 72517:873ae07c54d4 |
---|---|
642 example. Another example is the command to end the Emacs | 642 example. Another example is the command to end the Emacs |
643 session--this is the command C-x C-c. (Do not worry about losing | 643 session--this is the command C-x C-c. (Do not worry about losing |
644 changes you have made; C-x C-c offers to save each changed file before | 644 changes you have made; C-x C-c offers to save each changed file before |
645 it kills the Emacs.) | 645 it kills the Emacs.) |
646 | 646 |
647 If you are using a graphical display that supports multiple | |
648 applications in parallel, you don't need any special command to move | |
649 from Emacs to another application. You can do this with the mouse or | |
650 with window manager commands. However, if you're using a text | |
651 terminal which can only show one application at a time, you need to | |
652 "suspend" Emacs to move to any other program. | |
653 | |
647 C-z is the command to exit Emacs *temporarily*--so that you can go | 654 C-z is the command to exit Emacs *temporarily*--so that you can go |
648 back to the same Emacs session afterward. | 655 back to the same Emacs session afterward. When Emacs is running on a |
649 | 656 text terminal, C-z "suspends" Emacs; that is, it returns to the shell |
650 On systems which allow it, C-z "suspends" Emacs; that is, it returns | 657 but does not destroy the Emacs. In the most common shells, you can |
651 to the shell but does not destroy the Emacs. In the most common | 658 resume Emacs with the `fg' command or with `%emacs'. |
652 shells, you can resume Emacs with the `fg' command or with `%emacs'. | |
653 | |
654 On systems which do not implement suspending, C-z creates a subshell | |
655 running under Emacs to give you the chance to run other programs and | |
656 return to Emacs afterward; it does not truly "exit" from Emacs. In | |
657 this case, the shell command `exit' is the usual way to get back to | |
658 Emacs from the subshell. | |
659 | 659 |
660 The time to use C-x C-c is when you are about to log out. It's also | 660 The time to use C-x C-c is when you are about to log out. It's also |
661 the right thing to use to exit an Emacs invoked under mail handling | 661 the right thing to use to exit an Emacs invoked under mail handling |
662 programs and other miscellaneous utilities, since they may not know | 662 programs and other miscellaneous utilities, since they may not know |
663 how to cope with suspension of Emacs. In ordinary circumstances, | 663 how to cope with suspension of Emacs. In ordinary circumstances, |