aboutsummaryrefslogtreecommitdiffstats
path: root/man/basic.texi
diff options
context:
space:
mode:
authorRichard M. Stallman2001-03-12 03:24:41 +0000
committerRichard M. Stallman2001-03-12 03:24:41 +0000
commit06a97e7d078d1ae82083f2743d2e8a93e7c54fee (patch)
tree69252d492b788022059eb124d954e616d5961923 /man/basic.texi
parenta1233357b56b6c59baf159a1a3f52b1bc695b19a (diff)
downloademacs-06a97e7d078d1ae82083f2743d2e8a93e7c54fee.tar.gz
emacs-06a97e7d078d1ae82083f2743d2e8a93e7c54fee.zip
Clarify BACKSPACE vs DELETE. Mention delete-key-deletes-forward-mode.
Diffstat (limited to 'man/basic.texi')
-rw-r--r--man/basic.texi87
1 files changed, 53 insertions, 34 deletions
diff --git a/man/basic.texi b/man/basic.texi
index 0780c4c6283..c64739c6526 100644
--- a/man/basic.texi
+++ b/man/basic.texi
@@ -43,22 +43,30 @@ in the buffer is @samp{FOOBAR}, with the cursor before the @samp{B},
43then if you type @kbd{XX}, you get @samp{FOOXXBAR}, with the cursor 43then if you type @kbd{XX}, you get @samp{FOOXXBAR}, with the cursor
44still before the @samp{B}. 44still before the @samp{B}.
45 45
46 To @dfn{delete} text you have just inserted, use @key{DEL}. @key{DEL} 46 To @dfn{delete} text you have just inserted, use the large key
47deletes the character @emph{before} the cursor (not the one that the cursor 47labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short
48is on top of or under; that is the character @var{after} the cursor). The 48distance above the @key{RET} or @key{ENTER} key. This is the key you
49cursor and all characters after it move backwards. Therefore, if you type 49normally use for erasing the last character that you typed.
50a printing character and then type @key{DEL}, they cancel out. 50Regardless of the actual name on the key, Emacs always thinks of it as
51 51@key{DEL}, and that's what we call it in the manual.
52@kindex BS 52
53@kindex backspace 53 The @key{DEL} key deletes the character @emph{before} the cursor.
54 Note that many keyboards label the @key{DEL} key as @key{BS} or 54As a consequence, the cursor and all the characters after it move
55@key{<-}, and you might be used to refer to it as the ``backspace key''. 55backwards. If you type a printing character and then type @key{DEL},
56In addition, many modern keyboards have a separate function key labeled 56they cancel out.
57@key{Delete} or @key{Del}, which is normally bound to the 57
58@code{delete-char} command and deletes the character @emph{after} the 58 Many keyboards have both a @key{BACKSPACE} key a short ways above
59cursor (@pxref{Deletion}). Do not confuse @key{Delete} with 59@key{RET} or @key{ENTER}, and a @key{DELETE} key elsewhere. In that
60@key{DEL}---these are two different keys! @xref{Named ASCII Chars}, for 60case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key
61more details about special function keys recognized by Emacs. 61does something else---it deletes ``forwards,'' deleting the character
62after point, the one underneath the cursor, like @kbd{C-d} (see
63below).
64
65 On a text-only terminal, Emacs cannot automatically tell which keys
66it has and where they are located. If the convenient key for deletion
67is @key{BACKSPACE}, you must type @kbd{M-x
68delete-key-deletes-forward-mode @key{RET}} to make that key behave as
69@key{DEL}. @xref{Deletion}, for more explanation of this.
62 70
63@kindex RET 71@kindex RET
64@cindex newline 72@cindex newline
@@ -133,10 +141,6 @@ rebind @key{DEL} to other commands.
133@section Changing the Location of Point 141@section Changing the Location of Point
134 142
135@cindex arrow keys 143@cindex arrow keys
136@kindex LEFT
137@kindex RIGHT
138@kindex UP
139@kindex DOWN
140@cindex moving point 144@cindex moving point
141@cindex movement 145@cindex movement
142@cindex cursor motion 146@cindex cursor motion
@@ -159,6 +163,10 @@ them). Others do more sophisticated things.
159@kindex M-> 163@kindex M->
160@kindex M-< 164@kindex M-<
161@kindex M-r 165@kindex M-r
166@kindex LEFT
167@kindex RIGHT
168@kindex UP
169@kindex DOWN
162@findex beginning-of-line 170@findex beginning-of-line
163@findex end-of-line 171@findex end-of-line
164@findex forward-char 172@findex forward-char
@@ -176,11 +184,11 @@ Move to the beginning of the line (@code{beginning-of-line}).
176@item C-e 184@item C-e
177Move to the end of the line (@code{end-of-line}). 185Move to the end of the line (@code{end-of-line}).
178@item C-f 186@item C-f
179Move forward one character (@code{forward-char}). The @key{->} right 187Move forward one character (@code{forward-char}). The right-arrow key
180arrow key, if your keyboard has it, does the same. 188does the same thing.
181@item C-b 189@item C-b
182Move backward one character (@code{backward-char}). The @key{<-} left 190Move backward one character (@code{backward-char}). The left-arrow
183arrow key has the same effect. 191key has the same effect.
184@item M-f 192@item M-f
185Move forward one word (@code{forward-word}). 193Move forward one word (@code{forward-word}).
186@item M-b 194@item M-b
@@ -188,10 +196,10 @@ Move backward one word (@code{backward-word}).
188@item C-n 196@item C-n
189Move down one line, vertically (@code{next-line}). This command 197Move down one line, vertically (@code{next-line}). This command
190attempts to keep the horizontal position unchanged, so if you start in 198attempts to keep the horizontal position unchanged, so if you start in
191the middle of one line, you end in the middle of the next. The down 199the middle of one line, you end in the middle of the next. The
192arrow key, if your keyboard has it, does the same. 200down-arrow key does the same thing.
193@item C-p 201@item C-p
194Move up one line, vertically (@code{previous-line}). The up arrow key 202Move up one line, vertically (@code{previous-line}). The up-arrow key
195has the same effect. 203has the same effect.
196@item M-r 204@item M-r
197Move point to left margin, vertically centered in the window 205Move point to left margin, vertically centered in the window
@@ -201,19 +209,24 @@ A numeric argument says which screen line to place point on. It counts
201screen lines down from the top of the window (zero for the top line). A 209screen lines down from the top of the window (zero for the top line). A
202negative argument counts lines from the bottom (@minus{}1 for the bottom 210negative argument counts lines from the bottom (@minus{}1 for the bottom
203line). 211line).
204@item C-v
205Scroll the display forward one windowfull. If your keyboard has a
206@key{PageDown} key, it does the same. Scrolling commands are further
207described in @ref{Scrolling}.
208@item M-v
209Scroll the display backward one windowfull. The @key{PageUp} key has
210the same effect. @xref{Scrolling}.
211@item M-< 212@item M-<
212Move to the top of the buffer (@code{beginning-of-buffer}). With 213Move to the top of the buffer (@code{beginning-of-buffer}). With
213numeric argument @var{n}, move to @var{n}/10 of the way from the top. 214numeric argument @var{n}, move to @var{n}/10 of the way from the top.
214@xref{Arguments}, for more information on numeric arguments.@refill 215@xref{Arguments}, for more information on numeric arguments.@refill
215@item M-> 216@item M->
216Move to the end of the buffer (@code{end-of-buffer}). 217Move to the end of the buffer (@code{end-of-buffer}).
218@item C-v
219Scroll the display one screen forward, and move point if necessary to put
220it on the screen (@code{scroll-up}). This doesn't always
221move point, but it is commonly used to do so.
222If your keyboard has a @key{PAGEDOWN} key, it does the same thing.
223
224Scrolling commands are further described in @ref{Scrolling}.
225@item M-v
226Scroll one screen backward, and move point if necessary to put it on
227the screen (@code{scroll-down}). This doesn't always move point, but
228it is commonly used to do so. The @key{PAGEUP} key has the same
229effect.
217@item M-x goto-char 230@item M-x goto-char
218Read a number @var{n} and move point to buffer position @var{n}. 231Read a number @var{n} and move point to buffer position @var{n}.
219Position 1 is the beginning of the buffer. 232Position 1 is the beginning of the buffer.
@@ -254,6 +267,12 @@ an additional line at the end and moves down onto it.
254Delete the character before point (@code{delete-backward-char}). 267Delete the character before point (@code{delete-backward-char}).
255@item C-d 268@item C-d
256Delete the character after point (@code{delete-char}). 269Delete the character after point (@code{delete-char}).
270@item @key{DELETE}
271@itemx @key{BACKSPACE}
272One of these keys, whichever is the large key above the @key{RET} or
273@key{ENTER} key, deletes the character before point, like @key{DEL}.
274If that is @key{BACKSPACE}, and your keyboard also has @key{DELETE},
275then @key{DELETE} deletes forwards, like @kbd{C-d}.
257@item C-k 276@item C-k
258Kill to the end of the line (@code{kill-line}). 277Kill to the end of the line (@code{kill-line}).
259@item M-d 278@item M-d