annotate man/new-users-guide/enter.texi @ 428:3ecd8885ac67 r21-2-22

Import from CVS: tag r21-2-22
author cvs
date Mon, 13 Aug 2007 11:28:15 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 @node Entering, Windows and Menus, Concept Index, Top
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 @chapter Entering and Exiting Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 @cindex buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 @cindex file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 @cindex windows
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 While using Emacs you should be familiar with the following three terms:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 @table @asis
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 @item Buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 A @b{buffer} is a region of memory holding characters. It is the basic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 editing unit; one buffer corresponds to one piece of text being
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 edited. You can have multiple buffers but you can edit only one buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 at any one time. For more information, @xref{Buffers,,,xemacs,XEmacs User's
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 Manual}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 @item File
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 A @b{file} is a region of disk space holding characters. Emacs edits a file by
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 reading it into a buffer, editing that buffer and writing out the buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 back to the file. To save your work permanently you have to write it to a file.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 So after you load and work with a file, you have to save it back.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 @item Windows
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 A @b{window} is a rectangular region in which a buffer is displayed. You can
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 open multiple windows with multiple buffers and edit them by selecting the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 corresponding buffer. Initially, when you start emacs, it will automatically
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 open up a window for you.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 @menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 * Enter:: Entering Emacs from the shell
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 * Frame:: Basic information about the XEmacs Frame
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 * Exiting:: Exiting Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 * Mode Line:: Interpreting the mode line.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 * Echo Area:: Bottom of the frame where you interact
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 with Emacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 @end menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 @node Enter, Frame, Entering, Entering
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 @section Entering Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 @cindex entering Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 @cindex entering XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 To enter Emacs type @kbd{xemacs} and press the Return key at the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 shell i.e. @kbd{xemacs @key{RET}}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 This will bring up an emacs window with @samp{*scratch*} as the default
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 buffer because Emacs must always have a buffer to work on. Then choose
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 the @b{Open...} option from the @b{File} menu on the menubar at the top
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 of the frame. It will prompt you to enter a filename. After you enter
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 the filename, Emacs will read that file into the current buffer. You can
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 also type :
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55 @kbd{xemacs <filename> @key{RET}}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 directly which will bring up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 an Emacs frame with the @dfn{filename} as the buffer.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 @comment
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 @node Frame, Exiting, Enter, Entering
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 @section Emacs Frame
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 @cindex open another file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66 When you run XEmacs under X, a menu bar on top of the Emacs frame
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 provides access to pull-down menus of file, edit, and help-related
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 commands. The menus only provide convenient shortcuts, the options that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 they provide are available via key commands. You can invoke those
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 commands from the keyboard also. For many of the options, their
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 corresponding key commands are displayed right besides them. The five
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 default menus on the menubar that you will see on the frame are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 @b{File}, @b{Edit}, @b{Options}, @b{Buffers} and @b{Help}. @xref{XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 Pull-down Menus,,,xemacs,XEmacs User's Manual}, for detailed information on
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 the functions provided by the pull-down menus.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 The Emacs frame has a rectangle shaped box at the extreme right and you can
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78 drag it up or down to scroll the window accordingly. Clicking on the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 arrows also serves the same purpose.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 The last line in your window is @samp{the Mode line} which will give
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82 you a description of what's going on in that particular
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 window. @xref{Mode Line}, for more
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 information. Below the mode line is the @samp{Echo area}. Emacs uses
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 this area to interact with the user. @xref{Echo Area}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 If you wish to open another file in a new window after you enter
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 XEmacs, select @b{Open in New Frame...} from the @b{File} menu, which
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 will prompt you for a filename and open a new window with that filename
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 as the current buffer. If you want to open a new file in the same
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 window, select @b{Open..} from the @b{File} menu. You need to enter
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 XEmacs only once, you can edit multiple files by opening several other
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 frames or by switching between buffers.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 @comment new section
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 @node Exiting, Mode Line, Frame, Entering
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 @section Exiting Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 @cindex exiting
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 @cindex killing Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 @cindex suspending
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 @cindex shrinking XEmacs frame
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104 There are two commands for exiting Emacs, one for @dfn{suspending} Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 and the other for @dfn{killing} Emacs. @dfn{Suspending} means stopping
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 Emacs temporarily and returning control to the shell, allowing you to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 resume editing
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 later in the same Emacs job, with the same files, same kill ring, same
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 undo history, and so on. This is the usual way to exit. @dfn{Killing}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 Emacs means destroying the Emacs job. You can run Emacs again later,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 but you will get a fresh Emacs; there is no way to resume the same
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 editing session after it has been killed.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 @kindex C-z
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 @findex suspend-emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 @kindex C-x C-c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 @findex save-buffers-kill-emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 @table @kbd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 @item C-z
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 Suspend Emacs (@code{suspend-emacs}). If used under the X window system,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 this command will shrink the X window containing the Emacs frame to an
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 icon. Clicking on the icon will resume that Emacs process
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 again. @xref{Exiting Emacs,,,xemacs,XEmacs User's Manual}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 @item C-x C-c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 Kill Emacs (@code{save-buffers-kill-emacs}). You can also select
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 @b{Exit Emacs} option from the @b{File} menu to kill that Emacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 process. If you haven't saved the file, Emacs will ask you if you wish
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 to save the file before killing that process.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 @node Mode Line, Echo Area, Exiting, Entering
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 @section The Mode Line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 @cindex mode line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 @cindex top level
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 When you enter XEmacs, each text window's last line is a @dfn{mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 line} which describes what is going on in that window. Normally, the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 mode line looks like :
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 @cartouche
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 --@var{ch}-XEmacs: @var{buf} (@var{major} @var{minor})----@var{pos}------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 @end cartouche
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 This gives information about the buffer being displayed in the window: the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 buffer's name, what major and minor modes are in use, whether the buffer's
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 text has been changed, and how far down the buffer you are currently
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 looking.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 The @var{ch} contains :
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 @table @samp
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 @item **
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 if the text in the buffer has been edited
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 @item --
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 if the text in the buffer has not been edited
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 @item %%
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 if the buffer is a read-only-buffer i.e. it cannot be edited
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 @var{buf} is the name of the window's chosen @dfn{buffer}. If you are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 editing a file (which is the selected buffer), the file name appears
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 in @var{buf}. @xref{Buffers,,,xemacs,XEmacs User's Manual}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 @var{pos} contains :
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 @table @samp
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 @item All
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176 if your entire file is visible on the screen.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 @item Top
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 if you are looking at the beginning of the file.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 @item Bot
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 if you are looking at the end of the file.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 @item @var{nn}%
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 @var{nn} will be a number corresponding to the percentage of the file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183 above the top of the screen, for example @samp{52}, which means that 52%
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 of the file is above the top of the screen.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 @var{major} is the name of the @dfn{major mode} in effect in the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 buffer. At any time, each buffer is in one and only one major mode.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189 The available major modes include Fundamental mode (the least
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190 specialized), Text mode, Lisp mode, and C mode. @xref{Major
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
191 Modes,,,xemacs,XEmacs User's Manual}, for details on how the modes differ
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
192 and how you select one.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 @var{minor} is a list of some of the @dfn{minor modes} that are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195 turned on in the window's chosen buffer. For example, @samp{Fill} means
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
196 that Auto Fill mode is on which means that lines are broken
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
197 automatically when they become too wide. @xref{Minor
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
198 Modes,,,xemacs,XEmacs User's Manual}, for more information on various
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
199 minor modes and how to enable them.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
200
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
201 You can also display time in the mode line. @xref{The Mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
202 Line,,,xemacs,XEmacs User's Manual}, for more information regarding the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
203 mode line.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
204
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
205
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206 @comment node-name, next, previous, up
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 @node Echo Area, , Mode Line, Entering
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
208 @section The Echo Area
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 @cindex echo area
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
211 The line at the bottom of the frame (below the mode line) is the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 @dfn{echo area}. Emacs uses this area to communicate with you:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214 @itemize @bullet
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 The @dfn{echo area} will print out the characters that you type. For
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 example, if you choose the @b{Open...} option from the @b{File} menu you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218 might get the following in the echo area:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 Find file: /usr/lib/x11/
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 Now you need to give a file name to open, for example if the file name
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
226 is @file{myfile}, you will type @file{myfile} after
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
227 @file{/usr/lib/x11/} and press the @key{Return} key. If you pause for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
228 more than a second while typing, you will see the characters that you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 type in the @dfn{echo area}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 The @dfn{echo area} also prints error messages. For example, if you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232 misspell @samp{usr} and type @file{/urs/lib/x11/myfile} @key{RETURN} in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 the above example you might get an error message. Since
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234 Emacs will not be able to find the @file{/urs}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 directory, the @dfn{echo area} will say:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238 @error{} Opening directory: no such file or directory, /urs/lib/x11/myfile
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 This error message will be accompanied by a beep. Some XEmacs commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 will print informative messages in the @dfn{echo area}. @xref{The Echo
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 Area,,,xemacs,XEmacs User's Manual}, for more information on the @dfn{echo
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 area}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 @end itemize
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252