diff options
| -rw-r--r-- | man/entering.texi | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/man/entering.texi b/man/entering.texi index bef6a5a4db0..dca85d44812 100644 --- a/man/entering.texi +++ b/man/entering.texi | |||
| @@ -69,20 +69,19 @@ already running Emacs. @xref{Emacs Server}. | |||
| 69 | @cindex leaving Emacs | 69 | @cindex leaving Emacs |
| 70 | @cindex quitting Emacs | 70 | @cindex quitting Emacs |
| 71 | 71 | ||
| 72 | There are two commands for exiting Emacs, and three kinds of exiting: | 72 | There are two commands for exiting Emacs, and three kinds of |
| 73 | @dfn{suspending} Emacs, @dfn{Iconifying} Emacs, and @dfn{killing} | 73 | exiting: @dfn{iconifying} Emacs, @dfn{suspending} Emacs, and |
| 74 | Emacs. | 74 | @dfn{killing} Emacs. |
| 75 | 75 | ||
| 76 | @dfn{Suspending} means stopping Emacs temporarily and returning | 76 | @dfn{Iconifying} means replacing the Emacs frame with a small box or |
| 77 | control to its parent process (usually a shell), allowing you to resume | 77 | ``icon'' on the screen. This is the usual way to exit Emacs when |
| 78 | editing later in the same Emacs job, with the same buffers, same kill | 78 | you're using a graphical display---if you bother to ``exit'' at all. |
| 79 | ring, same undo history, and so on. This is the usual way to exit Emacs | 79 | (Just switching to another application is usually sufficient.) |
| 80 | when running on a text terminal. | ||
| 81 | 80 | ||
| 82 | @dfn{Iconifying} means replacing the Emacs frame with a small box | 81 | @dfn{Suspending} means stopping Emacs temporarily and returning |
| 83 | somewhere on the screen. This is the usual way to exit Emacs when you're | 82 | control to its parent process (usually a shell), allowing you to |
| 84 | using a graphics terminal---if you bother to ``exit'' at all. (Just switching | 83 | resume editing later in the same Emacs job. This is the usual way to |
| 85 | to another application is usually sufficient.) | 84 | exit Emacs when running it on a text terminal. |
| 86 | 85 | ||
| 87 | @dfn{Killing} Emacs means destroying the Emacs job. You can run Emacs | 86 | @dfn{Killing} Emacs means destroying the Emacs job. You can run Emacs |
| 88 | again later, but you will get a fresh Emacs; there is no way to resume | 87 | again later, but you will get a fresh Emacs; there is no way to resume |
| @@ -97,12 +96,18 @@ Kill Emacs (@code{save-buffers-kill-emacs}). | |||
| 97 | @end table | 96 | @end table |
| 98 | 97 | ||
| 99 | @kindex C-z | 98 | @kindex C-z |
| 100 | @findex suspend-emacs | 99 | @findex iconify-or-deiconify-frame |
| 101 | To suspend or iconify Emacs, type @kbd{C-z} (@code{suspend-emacs}). | 100 | On graphical displays, @kbd{C-z} runs the command |
| 102 | On text terminals, this suspends Emacs. On graphical displays, | 101 | @code{iconify-or-deiconify-frame}, which temporarily iconifies (or |
| 103 | it iconifies the Emacs frame. | 102 | ``minimizes'') the selected Emacs frame (@pxref{Frames}). You can |
| 103 | then use the window manager to select some other application. (You | ||
| 104 | could select another application without iconifying Emacs first, but | ||
| 105 | getting the Emacs frame out of the way can make it more convenient to | ||
| 106 | find the other application.) | ||
| 104 | 107 | ||
| 105 | Suspending Emacs takes you back to the shell from which you invoked | 108 | @findex suspend-emacs |
| 109 | On a text terminal, @kbd{C-z} runs the command @code{suspend-emacs}. | ||
| 110 | Suspending Emacs takes you back to the shell from which you invoked | ||
| 106 | Emacs. You can resume Emacs with the shell command @command{%emacs} | 111 | Emacs. You can resume Emacs with the shell command @command{%emacs} |
| 107 | in most common shells. On systems that don't support suspending | 112 | in most common shells. On systems that don't support suspending |
| 108 | programs, @kbd{C-z} starts an inferior shell that communicates | 113 | programs, @kbd{C-z} starts an inferior shell that communicates |
| @@ -112,19 +117,12 @@ subshell. (The way to do that is probably with @kbd{C-d} or | |||
| 112 | systems, you can only get back to the shell from which Emacs was run | 117 | systems, you can only get back to the shell from which Emacs was run |
| 113 | (to log out, for example) when you kill Emacs. | 118 | (to log out, for example) when you kill Emacs. |
| 114 | 119 | ||
| 120 | @vindex cannot-suspend | ||
| 115 | Suspending can fail if you run Emacs under a shell that doesn't | 121 | Suspending can fail if you run Emacs under a shell that doesn't |
| 116 | support suspending programs, even if the system itself does support | 122 | support suspendion of its subjobs, even if the system itself does |
| 117 | it. In such a case, you can set the variable @code{cannot-suspend} to | 123 | support it. In such a case, you can set the variable |
| 118 | a non-@code{nil} value to force @kbd{C-z} to start an inferior shell. | 124 | @code{cannot-suspend} to a non-@code{nil} value to force @kbd{C-z} to |
| 119 | (One might also describe Emacs's parent shell as ``inferior'' for | 125 | start an inferior shell. |
| 120 | failing to support job control properly, but that is a matter of | ||
| 121 | taste.) | ||
| 122 | |||
| 123 | On graphical displays, @kbd{C-z} has a different meaning: it runs | ||
| 124 | the command @code{iconify-or-deiconify-frame}, which temporarily | ||
| 125 | iconifies (or ``minimizes'') the selected Emacs frame | ||
| 126 | (@pxref{Frames}). Then you can use the window manager to get back to | ||
| 127 | a shell window. | ||
| 128 | 126 | ||
| 129 | @kindex C-x C-c | 127 | @kindex C-x C-c |
| 130 | @findex save-buffers-kill-emacs | 128 | @findex save-buffers-kill-emacs |