annotate man/xemacs/basic.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 abe6d1db359e
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
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 @node Basic, Undo, Startup Paths, Top
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 @chapter Basic Editing Commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 @kindex C-h t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 @findex help-with-tutorial
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 We now give the basics of how to enter text, make corrections, and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 save the text in a file. If this material is new to you, you might
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 learn it more easily by running the Emacs learn-by-doing tutorial. To
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 do this, type @kbd{Control-h t} (@code{help-with-tutorial}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 @section Inserting Text
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 @cindex insertion
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 @cindex point
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 @cindex cursor
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 @cindex graphic characters
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 To insert printing characters into the text you are editing, just type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 them. This inserts the characters into the buffer at the cursor (that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 is, at @dfn{point}; @pxref{Point}). The cursor moves forward. Any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 characters after the cursor move forward too. If the text in the buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 is @samp{FOOBAR}, with the cursor before the @samp{B}, and you type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 @kbd{XX}, the result is @samp{FOOXXBAR}, with the cursor still before the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 @samp{B}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 @kindex DEL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 @cindex deletion
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 To @dfn{delete} text you have just inserted, use @key{DEL}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 @key{DEL} deletes the character @var{before} the cursor (not the one
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 that the cursor is on top of or under; that is the character @var{after}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 the cursor). The cursor and all characters after it move backwards.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 Therefore, if you type a printing character and then type @key{DEL},
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 they cancel out.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 @kindex RET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 @cindex newline
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 To end a line and start typing a new one, type @key{RET}. This
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 inserts a newline character in the buffer. If point is in the middle of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 a line, @key{RET} splits the line. Typing @key{DEL} when the cursor is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 at the beginning of a line rubs out the newline before the line, thus
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 joining the line with the preceding line.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 Emacs automatically splits lines when they become too long, if you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 turn on a special mode called @dfn{Auto Fill} mode. @xref{Filling}, for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 information on using Auto Fill mode.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 @findex delete-backward-char
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 @findex newline
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 @findex self-insert
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 Customization information: @key{DEL}, in most modes, runs the command
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 @code{delete-backward-char}; @key{RET} runs the command @code{newline},
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 and self-inserting printing characters run the command
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 @code{self-insert}, which inserts whatever character was typed to invoke
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 it. Some major modes rebind @key{DEL} to other commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 @cindex quoting
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 @kindex C-q
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 @findex quoted-insert
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59 Direct insertion works for printing characters and @key{SPC}, but
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 other characters act as editing commands and do not insert themselves.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 If you need to insert a control character or a character whose code is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 above 200 octal, you must @dfn{quote} it by typing the character
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 @kbd{control-q} (@code{quoted-insert}) first. There are two ways to use
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 @kbd{C-q}:@refill
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 @itemize @bullet
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 @kbd{Control-q} followed by any non-graphic character (even @kbd{C-g})
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 inserts that character.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 @kbd{Control-q} followed by three octal digits inserts the character
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 with the specified character code.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 @end itemize
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 A numeric argument to @kbd{C-q} specifies how many copies of the quoted
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 character should be inserted (@pxref{Arguments}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 If you prefer to have text characters replace (overwrite) existing
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 text instead of moving it to the right, you can enable Overwrite mode, a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 minor mode. @xref{Minor Modes}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 @section Changing the Location of Point
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 To do more than insert characters, you have to know how to move point
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 (@pxref{Point}). Here are a few of the available commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 NOTE: Many of the following commands have two versions, one that uses
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 the function keys (e.g. @key{LEFT} or @key{END}) and one that doesn't.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 The former versions may only be available on X terminals (i.e. not on
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 TTY's), but the latter are available on all terminals.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 @kindex C-a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 @kindex C-e
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 @kindex C-f
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 @kindex C-b
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 @kindex C-n
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 @kindex C-p
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 @kindex C-l
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 @kindex C-t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 @kindex C-v
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 @kindex M-v
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 @kindex M->
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104 @kindex M-<
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 @kindex M-r
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 @kindex LEFT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 @kindex RIGHT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 @kindex UP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 @kindex DOWN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 @kindex HOME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 @kindex END
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 @kindex PGUP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 @kindex PGDN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 @kindex C-LEFT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 @kindex C-RIGHT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 @kindex C-HOME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 @kindex C-END
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 @findex beginning-of-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 @findex end-of-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 @findex forward-char
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 @findex backward-char
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 @findex next-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 @findex previous-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 @findex recenter
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 @findex transpose-chars
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 @findex beginning-of-buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 @findex end-of-buffer
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 @findex goto-char
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 @findex goto-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 @findex move-to-window-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 @table @kbd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 @item C-a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 @itemx HOME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 Move to the beginning of the line (@code{beginning-of-line}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 @item C-e
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 @itemx END
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 Move to the end of the line (@code{end-of-line}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 @item C-f
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 @itemx RIGHT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 Move forward one character (@code{forward-char}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 @item C-b
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 @itemx LEFT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 Move backward one character (@code{backward-char}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 @item M-f
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 @itemx C-RIGHT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 Move forward one word (@code{forward-word}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 @item M-b
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 @itemx C-LEFT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 Move backward one word (@code{backward-word}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 @item C-n
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 @itemx DOWN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 Move down one line, vertically (@code{next-line}). This command attempts to keep the horizontal position unchanged, so if you start in the middle of one line, you end in the middle of the next. When on the last line of text, @kbd{C-n} creates a new line and moves onto it.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 @item C-p
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 @itemx UP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 Move up one line, vertically (@code{previous-line}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 @item C-v
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 @itemx PGDN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 Move down one page, vertically (@code{scroll-up}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 @item M-v
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 @itemx PGUP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 Move up one page, vertically (@code{scroll-down}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 @item C-l
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 Clear the frame and reprint everything (@code{recenter}). Text moves
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 on the frame to bring point to the center of the window.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 @item M-r
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 Move point to left margin on the line halfway down the frame or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 window (@code{move-to-window-line}). Text does not move on the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 frame. A numeric argument says how many screen lines down from the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 top of the window (zero for the top). A negative argument counts from
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 the bottom (@minus{}1 for the bottom).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 @item C-t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 Transpose two characters, the ones before and after the cursor
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 @*(@code{transpose-chars}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 @item M-<
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 @itemx C-HOME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176 Move to the top of the buffer (@code{beginning-of-buffer}). With
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 numeric argument @var{n}, move to @var{n}/10 of the way from the top.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 @xref{Arguments}, for more information on numeric arguments.@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 @item M->
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 @itemx C-END
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 Move to the end of the buffer (@code{end-of-buffer}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 @item M-x goto-char
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183 Read a number @var{n} and move the cursor to character number @var{n}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 Position 1 is the beginning of the buffer.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185 @item M-g
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186 Read a number @var{n} and move cursor to line number @var{n}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 (@code{goto-line}). Line 1 is the beginning of the buffer.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 @item C-x C-n
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189 @findex set-goal-column
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190 Use the current column of point as the @dfn{semi-permanent goal column} for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
191 @kbd{C-n} and @kbd{C-p} (@code{set-goal-column}). Henceforth, those
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
192 commands always move to this column in each line moved into, or as
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 close as possible given the contents of the line. This goal column remains
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 in effect until canceled.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195 @item C-u C-x C-n
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
196 Cancel the goal column. Henceforth, @kbd{C-n} and @kbd{C-p} once
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
197 again try to avoid changing the horizontal position, as usual.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
198 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
199
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
200 @vindex track-eol
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
201 If you set the variable @code{track-eol} to a non-@code{nil} value,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
202 @kbd{C-n} and @kbd{C-p} move to the end of the line when at the end of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
203 the starting line. By default, @code{track-eol} is @code{nil}.
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 @section Erasing Text
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 @table @kbd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
208 @item @key{DEL}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 Delete the character before the cursor (@code{delete-backward-char}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210 @item C-d
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
211 Delete the character after the cursor (@code{delete-char}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 @item C-k
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213 Kill to the end of the line (@code{kill-line}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214 @item M-d
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 Kill forward to the end of the next word (@code{kill-word}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 @item M-@key{DEL}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 Kill back to the beginning of the previous word
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218 (@code{backward-kill-word}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 In contrast to the @key{DEL} key, which deletes the character before
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 the cursor, @kbd{Control-d} deletes the character after the cursor,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 causing the rest of the text on the line to shift left. If
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224 @kbd{Control-d} is typed at the end of a line, that line and the next
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 line are joined.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
226
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
227 To erase a larger amount of text, use @kbd{Control-k}, which kills a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
228 line at a time. If you use @kbd{C-k} at the beginning or in the middle
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 of a line, it kills all the text up to the end of the line. If you use
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230 @kbd{C-k} at the end of a line, it joins that line and the next
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 line.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 @xref{Killing}, for more flexible ways of killing text.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 @section Files
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 @cindex files
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238 The commands above are sufficient for creating and altering text in an
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 Emacs buffer. More advanced Emacs commands just make things easier. But
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 to keep any text permanently you must put it in a @dfn{file}. Files are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 named units of text which are stored by the operating system and which
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 you can retrieve by name. To look at or use the contents of a file in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 any way, including editing the file with Emacs, you must specify the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 file name.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 Consider a file named @file{/usr/rms/foo.c}. To begin editing
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 this file from Emacs, type:
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 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250 C-x C-f /usr/rms/foo.c @key{RET}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 The file name is given as an @dfn{argument} to the command @kbd{C-x
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 C-f} (@code{find-file}). The command uses the @dfn{minibuffer} to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 read the argument. You have to type @key{RET} to terminate the argument
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
257 (@pxref{Minibuffer}).@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259 You can also use the @b{Open...} menu item from the @b{File} menu, then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 type the name of the file to the prompt.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262 Emacs obeys the command by @dfn{visiting} the file: it creates a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263 buffer, copies the contents of the file into the buffer, and then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 displays the buffer for you to edit. You can make changes in the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
265 buffer, and then @dfn{save} the file by typing @kbd{C-x C-s}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
266 (@code{save-buffer}) or choosing @b{Save Buffer} from the @b{File} menu.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 This makes the changes permanent by copying the altered contents of the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 buffer back into the file @file{/usr/rms/foo.c}. Until then, the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
269 changes are only inside your Emacs buffer, and the file @file{foo.c} is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
270 not changed.@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
271
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272 To create a file, visit the file with @kbd{C-x C-f} as if it already
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
273 existed or choose @b{Open...} from the @b{File} menu and provide the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
274 name for the new file in the minibuffer. Emacs will create an empty
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
275 buffer in which you can insert the text you want to put in the file.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
276 When you save the buffer with @kbd{C-x C-s}, or by choosing @b{Save
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277 Buffer} from the @b{File} menu, the file is created.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
279 To learn more about using files, @pxref{Files}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
281 @section Help
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283 If you forget what a key does, you can use the Help character
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284 (@kbd{C-h}) to find out: Type @kbd{C-h k} followed by the key you want
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285 to know about. For example, @kbd{C-h k C-n} tells you what @kbd{C-n}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286 does. @kbd{C-h} is a prefix key; @kbd{C-h k} is just one of its
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 subcommands (the command @code{describe-key}). The other subcommands of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288 @kbd{C-h} provide different kinds of help. Type @kbd{C-h} three times
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
289 to get a description of all the help facilities. @xref{Help}.@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
290
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 @menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 * Blank Lines:: Commands to make or delete blank lines.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 * Continuation Lines:: Lines too wide for the frame.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
294 * Position Info:: What page, line, row, or column is point on?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295 * Arguments:: Numeric arguments for repeating a command.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296 @end menu
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 @node Blank Lines, Continuation Lines, Basic, Basic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299 @section Blank Lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 Here are special commands and techniques for entering and removing
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302 blank lines.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 @c widecommands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305 @table @kbd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 @item C-o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307 Insert one or more blank lines after the cursor (@code{open-line}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308 @item C-x C-o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 Delete all but one of many consecutive blank lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
310 (@code{delete-blank-lines}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
312
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
313 @kindex C-o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
314 @kindex C-x C-o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 @cindex blank lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316 @findex open-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 @findex delete-blank-lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318 When you want to insert a new line of text before an existing line,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319 you just type the new line of text, followed by @key{RET}. If you
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 prefer to create a blank line first and then insert the desired text,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
321 use the key @kbd{C-o} (@code{open-line}), which inserts a newline after
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
322 point but leaves point in front of the newline. Then type
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323 the text into the new line. @kbd{C-o F O O} has the same effect as
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 @kbd{F O O @key{RET}}, except for the final location of point.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
326 To create several blank lines, type @kbd{C-o} several times, or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 give @kbd{C-o} an argument indicating how many blank lines to create.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
328 @xref{Arguments}, for more information.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330 If you have many blank lines in a row and want to get rid of them, use
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 @kbd{C-x C-o} (@code{delete-blank-lines}). If point is on a blank
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 line which is adjacent to at least one other blank line, @kbd{C-x C-o}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 deletes all but one of the blank lines.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 If point is on a blank line with no other adjacent blank line, the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 sole blank line is deleted. If point is on a non-blank
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 line, @kbd{C-x C-o} deletes any blank lines following that non-blank
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337 line.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 @node Continuation Lines, Position Info, Blank Lines, Basic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 @section Continuation Lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 @cindex continuation line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343 If you add too many characters to one line without breaking with a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 @key{RET}, the line grows to occupy two (or more) screen lines, with a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345 curved arrow at the extreme right margin of all but the last line. The
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
346 curved arrow indicates that the following screen line is not really a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
347 distinct line in the text, but just the @dfn{continuation} of a line too
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 long to fit the frame. You can use Auto Fill mode (@pxref{Filling})
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349 to have Emacs insert newlines automatically when a line gets too long.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
351
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352 @vindex truncate-lines
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353 @cindex truncation
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
354 Instead of continuation, long lines can be displayed by @dfn{truncation}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
355 This means that all the characters that do not fit in the width of the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
356 frame or window do not appear at all. They remain in the buffer,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
357 temporarily invisible. Three diagonal dots in the last column (instead of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
358 the curved arrow inform you that truncation is in effect.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
359
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
360 To turn off continuation for a particular buffer, set the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
361 variable @code{truncate-lines} to non-@code{nil} in that buffer.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
362 Truncation instead of continuation also happens whenever horizontal
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
363 scrolling is in use, and optionally whenever side-by-side windows are in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
364 use (@pxref{Windows}). Altering the value of @code{truncate-lines} makes
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
365 it local to the current buffer; until that time, the default value is in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
366 effect. The default is initially @code{nil}. @xref{Locals}.@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
367
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
368 @node Position Info, Arguments, Continuation Lines, Basic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
369 @section Cursor Position Information
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
370
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
371 If you are accustomed to other display editors, you may be surprised
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
372 that Emacs does not always display the page number or line number of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373 point in the mode line. In Emacs, this information is only rarely
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 needed, and a number of commands are available to compute and print it.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375 Since text is stored in a way that makes it difficult to compute the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
376 information, it is not displayed all the time.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
377
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
378 @table @kbd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
379 @item M-x what-page
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
380 Print page number of point, and line number within page.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
381 @item M-x what-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
382 Print line number of point in the buffer.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
383 @item M-=
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 Print number of lines and characters in the current region
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
385 (@code{count-lines-region}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
386 @item C-x =
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
387 Print character code of character after point, character position of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
388 point, and column of point (@code{what-cursor-position}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
389 @end table
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 @findex what-page
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
392 @findex what-line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
393 @cindex line number
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
394 @cindex page number
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
395 @kindex M-=
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
396 @findex count-lines-region
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
398 There are several commands for printing line numbers:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
399 @itemize @bullet
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401 @kbd{M-x what-line} counts lines from the beginning of the file and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
402 prints the line number point is on. The first line of the file is line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
403 number 1. You can use these numbers as arguments to @kbd{M-x
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
404 goto-line}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
405 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
406 @kbd{M-x what-page} counts pages from the beginning of the file, and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
407 counts lines within the page, printing both of them. @xref{Pages}, for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
408 the command @kbd{C-x l}, which counts the lines in the current page.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
409 @item
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
410 @kbd{M-=} (@code{count-lines-region}) prints the number of lines in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
411 the region (@pxref{Mark}).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
412 @end itemize
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
413
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
414 @kindex C-x =
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
415 @findex what-cursor-position
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
416 The command @kbd{C-x =} (@code{what-cursor-position}) provides
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
417 information about point and about the column the cursor is in.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
418 It prints a line in the echo area that looks like this:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
419
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
420 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
421 Char: x (0170) point=65986 of 563027(12%) column 44
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
422 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
423
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
424 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
425 (In fact, this is the output produced when point is before @samp{column 44}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
426 in the example.)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
427
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
428 The two values after @samp{Char:} describe the character following point,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
429 first by showing it and second by giving its octal character code.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
430
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
431 @samp{point=} is followed by the position of point expressed as a character
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
432 count. The front of the buffer counts as position 1, one character later
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
433 as 2, and so on. The next, larger number is the total number of characters
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
434 in the buffer. Afterward in parentheses comes the position expressed as a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
435 percentage of the total size.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
436
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
437 @samp{column} is followed by the horizontal position of point, in columns
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
438 from the left edge of the window.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
439
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
440 If the buffer has been narrowed, making some of the text at the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
441 beginning and the end temporarily invisible, @kbd{C-x =} prints
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
442 additional text describing the current visible range. For example, it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
443 might say:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
444
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
445 @smallexample
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
446 Char: x (0170) point=65986 of 563025(12%) <65102 - 68533> column 44
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
447 @end smallexample
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
448
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
449 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
450 where the two extra numbers give the smallest and largest character position
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
451 that point is allowed to assume. The characters between those two positions
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
452 are the visible ones. @xref{Narrowing}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
453
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
454 If point is at the end of the buffer (or the end of the visible part),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
455 @kbd{C-x =} omits any description of the character after point.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
456 The output looks like
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
457
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
458 @smallexample
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
459 point=563026 of 563025(100%) column 0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
460 @end smallexample
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462 @node Arguments,, Position Info, Basic
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 @section Numeric Arguments
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464 @cindex numeric arguments
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
466 Any Emacs command can be given a @dfn{numeric argument}. Some commands
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
467 interpret the argument as a repetition count. For example, giving an
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
468 argument of ten to the key @kbd{C-f} (the command @code{forward-char}, move
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
469 forward one character) moves forward ten characters. With these commands,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
470 no argument is equivalent to an argument of one. Negative arguments are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
471 allowed. Often they tell a command to move or act backwards.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
472
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
473 @kindex M-1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
474 @kindex M-@t{-}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
475 @findex digit-argument
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
476 @findex negative-argument
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
477 If your keyboard has a @key{META} key (labelled with a diamond on
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
478 Sun-type keyboards and labelled @samp{Alt} on some other keyboards), the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
479 easiest way to specify a numeric argument is to type digits and/or a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
480 minus sign while holding down the @key{META} key. For example,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
481 @example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
482 M-5 C-n
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
483 @end example
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
484 @noindent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
485 moves down five lines. The characters @kbd{Meta-1}, @kbd{Meta-2}, and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
486 so on, as well as @kbd{Meta--}, do this because they are keys bound to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
487 commands (@code{digit-argument} and @code{negative-argument}) that are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
488 defined to contribute to an argument for the next command.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
489
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
490 @kindex C-u
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
491 @findex universal-argument
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
492 Another way of specifying an argument is to use the @kbd{C-u}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
493 (@code{universal-argument}) command followed by the digits of the argument.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
494 With @kbd{C-u}, you can type the argument digits without holding
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
495 down shift keys. To type a negative argument, start with a minus sign.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
496 Just a minus sign normally means @minus{}1. @kbd{C-u} works on all terminals.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
497
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
498 @kbd{C-u} followed by a character which is neither a digit nor a minus
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
499 sign has the special meaning of ``multiply by four''. It multiplies the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
500 argument for the next command by four. @kbd{C-u} twice multiplies it by
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
501 sixteen. Thus, @kbd{C-u C-u C-f} moves forward sixteen characters. This
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
502 is a good way to move forward ``fast'', since it moves about 1/5 of a line
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
503 in the usual size frame. Other useful combinations are @kbd{C-u C-n},
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
504 @kbd{C-u C-u C-n} (move down a good fraction of a frame), @kbd{C-u C-u
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
505 C-o} (make ``a lot'' of blank lines), and @kbd{C-u C-k} (kill four
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
506 lines).@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
507
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
508 Some commands care only about whether there is an argument and not about
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
509 its value. For example, the command @kbd{M-q} (@code{fill-paragraph}) with
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
510 no argument fills text; with an argument, it justifies the text as well.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
511 (@xref{Filling}, for more information on @kbd{M-q}.) Just @kbd{C-u} is a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
512 handy way of providing an argument for such commands.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
513
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514 Some commands use the value of the argument as a repeat count, but do
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515 something peculiar when there is no argument. For example, the command
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 @kbd{C-k} (@code{kill-line}) with argument @var{n} kills @var{n} lines,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517 including their terminating newlines. But @kbd{C-k} with no argument is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518 special: it kills the text up to the next newline, or, if point is right at
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519 the end of the line, it kills the newline itself. Thus, two @kbd{C-k}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
520 commands with no arguments can kill a non-blank line, just like @kbd{C-k}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
521 with an argument of one. (@xref{Killing}, for more information on
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
522 @kbd{C-k}.)@refill
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
523
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
524 A few commands treat a plain @kbd{C-u} differently from an ordinary
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
525 argument. A few others may treat an argument of just a minus sign
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
526 differently from an argument of @minus{}1. These unusual cases will be
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
527 described when they come up; they are always to make the individual
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
528 command more convenient to use.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
529
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
530 @c section Autoarg Mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
531 @ignore
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
532 @cindex autoarg mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
533 Users of ASCII keyboards may prefer to use Autoarg mode. Autoarg mode
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
534 means that you don't need to type @kbd{C-u} to specify a numeric argument.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
535 Instead, you type just the digits. Digits followed by an ordinary
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
536 inserting character are themselves inserted, but digits followed by an
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
537 Escape or Control character serve as an argument to it and are not
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
538 inserted. A minus sign can also be part of an argument, but only at the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
539 beginning. If you type a minus sign following some digits, both the digits
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
540 and the minus sign are inserted.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
541
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
542 To use Autoarg mode, set the variable Autoarg Mode nonzero.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
543 @xref{Variables}.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
544
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
545 Autoargument digits echo at the bottom of the frame; the first
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
546 nondigit causes them to be inserted or uses them as an argument. To
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
547 insert some digits and nothing else, you must follow them with a Space
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
548 and then rub it out. @kbd{C-g} cancels the digits, while Delete inserts
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
549 them all and then rubs out the last.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
550 @end ignore