diff options
| author | Richard M. Stallman | 2005-02-06 11:17:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-06 11:17:45 +0000 |
| commit | 1db81533c348b2da33a4a4ca9b90514acf51561c (patch) | |
| tree | e56e6bf71b84a0bc3977dfe9a24609e8f1977a3c | |
| parent | af1b4255018e1776e9ef4a30b1c9f5c353c8d097 (diff) | |
| download | emacs-1db81533c348b2da33a4a4ca9b90514acf51561c.tar.gz emacs-1db81533c348b2da33a4a4ca9b90514acf51561c.zip | |
(Entering Emacs): Update rationale at start.
(Exiting): Treat iconifying on a par with suspension.
| -rw-r--r-- | man/entering.texi | 72 |
1 files changed, 40 insertions, 32 deletions
diff --git a/man/entering.texi b/man/entering.texi index ba031980410..fe76bf34844 100644 --- a/man/entering.texi +++ b/man/entering.texi | |||
| @@ -40,11 +40,11 @@ the editor again. With these editors, it makes sense to use a | |||
| 40 | command-line argument to say which file to edit. | 40 | command-line argument to say which file to edit. |
| 41 | 41 | ||
| 42 | But starting a new Emacs each time you want to edit a different file | 42 | But starting a new Emacs each time you want to edit a different file |
| 43 | does not make sense. For one thing, this would be annoyingly slow. | 43 | does not make sense. This would fail to take advantage of Emacs's |
| 44 | For another, this would fail to take advantage of Emacs's ability to | 44 | ability to visit more than one file in a single editing session, and |
| 45 | visit more than one file in a single editing session. And it would | 45 | it would lose the other accumulated context, such as the kill ring, |
| 46 | lose the other accumulated context, such as the kill ring, registers, | 46 | registers, undo history, and mark ring, that are useful for operating |
| 47 | undo history, and mark ring. | 47 | on multiple files. |
| 48 | 48 | ||
| 49 | The recommended way to use GNU Emacs is to start it only once, just | 49 | The recommended way to use GNU Emacs is to start it only once, just |
| 50 | after you log in, and do all your editing in the same Emacs session. | 50 | after you log in, and do all your editing in the same Emacs session. |
| @@ -71,13 +71,19 @@ information on editing files with Emacs from other programs. | |||
| 71 | @cindex leaving Emacs | 71 | @cindex leaving Emacs |
| 72 | @cindex quitting Emacs | 72 | @cindex quitting Emacs |
| 73 | 73 | ||
| 74 | There are two commands for exiting Emacs because there are two kinds | 74 | There are two commands for exiting Emacs because there are three |
| 75 | of exiting: @dfn{suspending} Emacs and @dfn{killing} Emacs. | 75 | kinds of exiting: @dfn{suspending} Emacs, @dfn{Iconifying} Emacs, and |
| 76 | @dfn{killing} Emacs. | ||
| 76 | 77 | ||
| 77 | @dfn{Suspending} means stopping Emacs temporarily and returning | 78 | @dfn{Suspending} means stopping Emacs temporarily and returning |
| 78 | control to its parent process (usually a shell), allowing you to resume | 79 | control to its parent process (usually a shell), allowing you to resume |
| 79 | editing later in the same Emacs job, with the same buffers, same kill | 80 | editing later in the same Emacs job, with the same buffers, same kill |
| 80 | ring, same undo history, and so on. This is the usual way to exit. | 81 | ring, same undo history, and so on. This is the usual way to exit Emacs |
| 82 | when running on a text terminal. | ||
| 83 | |||
| 84 | @dfn{Iconifying} means replacing the Emacs frame with a small box | ||
| 85 | somewhere on the screen. This is the usual way to exit Emacs when you're | ||
| 86 | using a graphics terminal. | ||
| 81 | 87 | ||
| 82 | @dfn{Killing} Emacs means destroying the Emacs job. You can run Emacs | 88 | @dfn{Killing} Emacs means destroying the Emacs job. You can run Emacs |
| 83 | again later, but you will get a fresh Emacs; there is no way to resume | 89 | again later, but you will get a fresh Emacs; there is no way to resume |
| @@ -93,31 +99,33 @@ Kill Emacs (@code{save-buffers-kill-emacs}). | |||
| 93 | 99 | ||
| 94 | @kindex C-z | 100 | @kindex C-z |
| 95 | @findex suspend-emacs | 101 | @findex suspend-emacs |
| 96 | To suspend Emacs, type @kbd{C-z} (@code{suspend-emacs}). This takes | 102 | To suspend or iconify Emacs, type @kbd{C-z} (@code{suspend-emacs}). |
| 97 | you back to the shell from which you invoked Emacs. You can resume | 103 | On text terminals, this suspends Emacs. On graphics terminals, |
| 98 | Emacs with the shell command @command{%emacs} in most common shells. | 104 | it iconifies the Emacs frame. |
| 99 | 105 | ||
| 100 | On systems that do not support suspending programs, @kbd{C-z} starts | 106 | Suspending Emacs takes you back to the shell from which you invoked |
| 101 | an inferior shell that communicates directly with the terminal. | 107 | Emacs. You can resume Emacs with the shell command @command{%emacs} |
| 102 | Emacs waits until you exit the subshell. (The way to do that is | 108 | in most common shells. On systems that don't support suspending |
| 103 | probably with @kbd{C-d} or @command{exit}, but it depends on which shell | 109 | programs, @kbd{C-z} starts an inferior shell that communicates |
| 104 | you use.) The only way on these systems to get back to the shell from | 110 | directly with the terminal. Emacs waits until you exit the subshell. |
| 105 | which Emacs was run (to log out, for example) is to kill Emacs. | 111 | (The way to do that is probably with @kbd{C-d} or @command{exit}, but |
| 106 | 112 | it depends on which shell you use.) The only way on these systems to | |
| 107 | Suspending also fails if you run Emacs under a shell that doesn't | 113 | get back to the shell from which Emacs was run (to log out, for |
| 108 | support suspending programs, even if the system itself does support it. | 114 | example) is to kill Emacs. |
| 109 | In such a case, you can set the variable @code{cannot-suspend} to a | 115 | |
| 110 | non-@code{nil} value to force @kbd{C-z} to start an inferior shell. | 116 | Suspending can fail if you run Emacs under a shell that doesn't |
| 117 | support suspending programs, even if the system itself does support | ||
| 118 | it. In such a case, you can set the variable @code{cannot-suspend} to | ||
| 119 | a non-@code{nil} value to force @kbd{C-z} to start an inferior shell. | ||
| 111 | (One might also describe Emacs's parent shell as ``inferior'' for | 120 | (One might also describe Emacs's parent shell as ``inferior'' for |
| 112 | failing to support job control properly, but that is a matter of taste.) | 121 | failing to support job control properly, but that is a matter of |
| 113 | 122 | taste.) | |
| 114 | When Emacs communicates directly with an X server and creates its own | 123 | |
| 115 | dedicated X windows, @kbd{C-z} has a different meaning. Suspending an | 124 | On graphics terminals, @kbd{C-z} has a different meaning: it runs |
| 116 | application that uses its own X windows is not meaningful or useful. | 125 | the command @code{iconify-or-deiconify-frame}, which temporarily |
| 117 | Instead, @kbd{C-z} runs the command @code{iconify-or-deiconify-frame}, | 126 | iconifies (or ``minimizes'') the selected Emacs frame |
| 118 | which temporarily iconifies (or ``minimizes'') the selected Emacs | 127 | (@pxref{Frames}). Then you can use the window manager to get back to |
| 119 | frame (@pxref{Frames}). Then you can use the window manager to get | 128 | a shell window. |
| 120 | back to a shell window. | ||
| 121 | 129 | ||
| 122 | @kindex C-x C-c | 130 | @kindex C-x C-c |
| 123 | @findex save-buffers-kill-emacs | 131 | @findex save-buffers-kill-emacs |