aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-08-25 21:08:35 +0000
committerRichard M. Stallman2006-08-25 21:08:35 +0000
commitfcdd0559e3483cef31be70cfa3495cfdd34de299 (patch)
tree41fa871aa3133ff7e380f3f4980856f2d99ed053
parentd0f891a742ddf5104188a26b9e02211735b9d5a5 (diff)
downloademacs-fcdd0559e3483cef31be70cfa3495cfdd34de299.tar.gz
emacs-fcdd0559e3483cef31be70cfa3495cfdd34de299.zip
(Exiting): Rewrite to give graphical displays priority over text terminals.
-rw-r--r--man/entering.texi56
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} 73exiting: @dfn{iconifying} Emacs, @dfn{suspending} Emacs, and
74Emacs. 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
77control 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
78editing later in the same Emacs job, with the same buffers, same kill 78you're using a graphical display---if you bother to ``exit'' at all.
79ring, same undo history, and so on. This is the usual way to exit Emacs 79(Just switching to another application is usually sufficient.)
80when 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
83somewhere on the screen. This is the usual way to exit Emacs when you're 82control to its parent process (usually a shell), allowing you to
84using a graphics terminal---if you bother to ``exit'' at all. (Just switching 83resume editing later in the same Emacs job. This is the usual way to
85to another application is usually sufficient.) 84exit 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
88again later, but you will get a fresh Emacs; there is no way to resume 87again 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
102On text terminals, this suspends Emacs. On graphical displays, 101@code{iconify-or-deiconify-frame}, which temporarily iconifies (or
103it iconifies the Emacs frame. 102``minimizes'') the selected Emacs frame (@pxref{Frames}). You can
103then use the window manager to select some other application. (You
104could select another application without iconifying Emacs first, but
105getting the Emacs frame out of the way can make it more convenient to
106find 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}.
110Suspending Emacs takes you back to the shell from which you invoked
106Emacs. You can resume Emacs with the shell command @command{%emacs} 111Emacs. You can resume Emacs with the shell command @command{%emacs}
107in most common shells. On systems that don't support suspending 112in most common shells. On systems that don't support suspending
108programs, @kbd{C-z} starts an inferior shell that communicates 113programs, @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
112systems, you can only get back to the shell from which Emacs was run 117systems, 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
116support suspending programs, even if the system itself does support 122support suspendion of its subjobs, even if the system itself does
117it. In such a case, you can set the variable @code{cannot-suspend} to 123support it. In such a case, you can set the variable
118a 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 125start an inferior shell.
120failing to support job control properly, but that is a matter of
121taste.)
122
123 On graphical displays, @kbd{C-z} has a different meaning: it runs
124the command @code{iconify-or-deiconify-frame}, which temporarily
125iconifies (or ``minimizes'') the selected Emacs frame
126(@pxref{Frames}). Then you can use the window manager to get back to
127a 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