diff options
| author | Richard M. Stallman | 2001-03-12 03:24:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-03-12 03:24:41 +0000 |
| commit | 06a97e7d078d1ae82083f2743d2e8a93e7c54fee (patch) | |
| tree | 69252d492b788022059eb124d954e616d5961923 /man/basic.texi | |
| parent | a1233357b56b6c59baf159a1a3f52b1bc695b19a (diff) | |
| download | emacs-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.texi | 87 |
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}, | |||
| 43 | then if you type @kbd{XX}, you get @samp{FOOXXBAR}, with the cursor | 43 | then if you type @kbd{XX}, you get @samp{FOOXXBAR}, with the cursor |
| 44 | still before the @samp{B}. | 44 | still 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 |
| 47 | deletes the character @emph{before} the cursor (not the one that the cursor | 47 | labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short |
| 48 | is on top of or under; that is the character @var{after} the cursor). The | 48 | distance above the @key{RET} or @key{ENTER} key. This is the key you |
| 49 | cursor and all characters after it move backwards. Therefore, if you type | 49 | normally use for erasing the last character that you typed. |
| 50 | a printing character and then type @key{DEL}, they cancel out. | 50 | Regardless 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 | 54 | As 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''. | 55 | backwards. If you type a printing character and then type @key{DEL}, |
| 56 | In addition, many modern keyboards have a separate function key labeled | 56 | they 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 |
| 59 | cursor (@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 | 60 | case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key |
| 61 | more details about special function keys recognized by Emacs. | 61 | does something else---it deletes ``forwards,'' deleting the character |
| 62 | after point, the one underneath the cursor, like @kbd{C-d} (see | ||
| 63 | below). | ||
| 64 | |||
| 65 | On a text-only terminal, Emacs cannot automatically tell which keys | ||
| 66 | it has and where they are located. If the convenient key for deletion | ||
| 67 | is @key{BACKSPACE}, you must type @kbd{M-x | ||
| 68 | delete-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 |
| 177 | Move to the end of the line (@code{end-of-line}). | 185 | Move to the end of the line (@code{end-of-line}). |
| 178 | @item C-f | 186 | @item C-f |
| 179 | Move forward one character (@code{forward-char}). The @key{->} right | 187 | Move forward one character (@code{forward-char}). The right-arrow key |
| 180 | arrow key, if your keyboard has it, does the same. | 188 | does the same thing. |
| 181 | @item C-b | 189 | @item C-b |
| 182 | Move backward one character (@code{backward-char}). The @key{<-} left | 190 | Move backward one character (@code{backward-char}). The left-arrow |
| 183 | arrow key has the same effect. | 191 | key has the same effect. |
| 184 | @item M-f | 192 | @item M-f |
| 185 | Move forward one word (@code{forward-word}). | 193 | Move 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 |
| 189 | Move down one line, vertically (@code{next-line}). This command | 197 | Move down one line, vertically (@code{next-line}). This command |
| 190 | attempts to keep the horizontal position unchanged, so if you start in | 198 | attempts to keep the horizontal position unchanged, so if you start in |
| 191 | the middle of one line, you end in the middle of the next. The down | 199 | the middle of one line, you end in the middle of the next. The |
| 192 | arrow key, if your keyboard has it, does the same. | 200 | down-arrow key does the same thing. |
| 193 | @item C-p | 201 | @item C-p |
| 194 | Move up one line, vertically (@code{previous-line}). The up arrow key | 202 | Move up one line, vertically (@code{previous-line}). The up-arrow key |
| 195 | has the same effect. | 203 | has the same effect. |
| 196 | @item M-r | 204 | @item M-r |
| 197 | Move point to left margin, vertically centered in the window | 205 | Move 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 | |||
| 201 | screen lines down from the top of the window (zero for the top line). A | 209 | screen lines down from the top of the window (zero for the top line). A |
| 202 | negative argument counts lines from the bottom (@minus{}1 for the bottom | 210 | negative argument counts lines from the bottom (@minus{}1 for the bottom |
| 203 | line). | 211 | line). |
| 204 | @item C-v | ||
| 205 | Scroll the display forward one windowfull. If your keyboard has a | ||
| 206 | @key{PageDown} key, it does the same. Scrolling commands are further | ||
| 207 | described in @ref{Scrolling}. | ||
| 208 | @item M-v | ||
| 209 | Scroll the display backward one windowfull. The @key{PageUp} key has | ||
| 210 | the same effect. @xref{Scrolling}. | ||
| 211 | @item M-< | 212 | @item M-< |
| 212 | Move to the top of the buffer (@code{beginning-of-buffer}). With | 213 | Move to the top of the buffer (@code{beginning-of-buffer}). With |
| 213 | numeric argument @var{n}, move to @var{n}/10 of the way from the top. | 214 | numeric 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-> |
| 216 | Move to the end of the buffer (@code{end-of-buffer}). | 217 | Move to the end of the buffer (@code{end-of-buffer}). |
| 218 | @item C-v | ||
| 219 | Scroll the display one screen forward, and move point if necessary to put | ||
| 220 | it on the screen (@code{scroll-up}). This doesn't always | ||
| 221 | move point, but it is commonly used to do so. | ||
| 222 | If your keyboard has a @key{PAGEDOWN} key, it does the same thing. | ||
| 223 | |||
| 224 | Scrolling commands are further described in @ref{Scrolling}. | ||
| 225 | @item M-v | ||
| 226 | Scroll one screen backward, and move point if necessary to put it on | ||
| 227 | the screen (@code{scroll-down}). This doesn't always move point, but | ||
| 228 | it is commonly used to do so. The @key{PAGEUP} key has the same | ||
| 229 | effect. | ||
| 217 | @item M-x goto-char | 230 | @item M-x goto-char |
| 218 | Read a number @var{n} and move point to buffer position @var{n}. | 231 | Read a number @var{n} and move point to buffer position @var{n}. |
| 219 | Position 1 is the beginning of the buffer. | 232 | Position 1 is the beginning of the buffer. |
| @@ -254,6 +267,12 @@ an additional line at the end and moves down onto it. | |||
| 254 | Delete the character before point (@code{delete-backward-char}). | 267 | Delete the character before point (@code{delete-backward-char}). |
| 255 | @item C-d | 268 | @item C-d |
| 256 | Delete the character after point (@code{delete-char}). | 269 | Delete the character after point (@code{delete-char}). |
| 270 | @item @key{DELETE} | ||
| 271 | @itemx @key{BACKSPACE} | ||
| 272 | One 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}. | ||
| 274 | If that is @key{BACKSPACE}, and your keyboard also has @key{DELETE}, | ||
| 275 | then @key{DELETE} deletes forwards, like @kbd{C-d}. | ||
| 257 | @item C-k | 276 | @item C-k |
| 258 | Kill to the end of the line (@code{kill-line}). | 277 | Kill to the end of the line (@code{kill-line}). |
| 259 | @item M-d | 278 | @item M-d |