aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-06 11:17:45 +0000
committerRichard M. Stallman2005-02-06 11:17:45 +0000
commit1db81533c348b2da33a4a4ca9b90514acf51561c (patch)
treee56e6bf71b84a0bc3977dfe9a24609e8f1977a3c
parentaf1b4255018e1776e9ef4a30b1c9f5c353c8d097 (diff)
downloademacs-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.texi72
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
40command-line argument to say which file to edit. 40command-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
43does not make sense. For one thing, this would be annoyingly slow. 43does not make sense. This would fail to take advantage of Emacs's
44For another, this would fail to take advantage of Emacs's ability to 44ability to visit more than one file in a single editing session, and
45visit more than one file in a single editing session. And it would 45it would lose the other accumulated context, such as the kill ring,
46lose the other accumulated context, such as the kill ring, registers, 46registers, undo history, and mark ring, that are useful for operating
47undo history, and mark ring. 47on 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
50after you log in, and do all your editing in the same Emacs session. 50after 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
75of exiting: @dfn{suspending} Emacs and @dfn{killing} Emacs. 75kinds 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
78control to its parent process (usually a shell), allowing you to resume 79control to its parent process (usually a shell), allowing you to resume
79editing later in the same Emacs job, with the same buffers, same kill 80editing later in the same Emacs job, with the same buffers, same kill
80ring, same undo history, and so on. This is the usual way to exit. 81ring, same undo history, and so on. This is the usual way to exit Emacs
82when running on a text terminal.
83
84 @dfn{Iconifying} means replacing the Emacs frame with a small box
85somewhere on the screen. This is the usual way to exit Emacs when you're
86using 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
83again later, but you will get a fresh Emacs; there is no way to resume 89again 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}).
97you back to the shell from which you invoked Emacs. You can resume 103On text terminals, this suspends Emacs. On graphics terminals,
98Emacs with the shell command @command{%emacs} in most common shells. 104it 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
101an inferior shell that communicates directly with the terminal. 107Emacs. You can resume Emacs with the shell command @command{%emacs}
102Emacs waits until you exit the subshell. (The way to do that is 108in most common shells. On systems that don't support suspending
103probably with @kbd{C-d} or @command{exit}, but it depends on which shell 109programs, @kbd{C-z} starts an inferior shell that communicates
104you use.) The only way on these systems to get back to the shell from 110directly with the terminal. Emacs waits until you exit the subshell.
105which 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 112it 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 113get back to the shell from which Emacs was run (to log out, for
108support suspending programs, even if the system itself does support it. 114example) is to kill Emacs.
109In such a case, you can set the variable @code{cannot-suspend} to a 115
110non-@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
117support suspending programs, even if the system itself does support
118it. In such a case, you can set the variable @code{cannot-suspend} to
119a 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
112failing to support job control properly, but that is a matter of taste.) 121failing to support job control properly, but that is a matter of
113 122taste.)
114 When Emacs communicates directly with an X server and creates its own 123
115dedicated X windows, @kbd{C-z} has a different meaning. Suspending an 124 On graphics terminals, @kbd{C-z} has a different meaning: it runs
116application that uses its own X windows is not meaningful or useful. 125the command @code{iconify-or-deiconify-frame}, which temporarily
117Instead, @kbd{C-z} runs the command @code{iconify-or-deiconify-frame}, 126iconifies (or ``minimizes'') the selected Emacs frame
118which temporarily iconifies (or ``minimizes'') the selected Emacs 127(@pxref{Frames}). Then you can use the window manager to get back to
119frame (@pxref{Frames}). Then you can use the window manager to get 128a shell window.
120back 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