diff options
| author | Richard M. Stallman | 2001-03-14 01:23:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-03-14 01:23:52 +0000 |
| commit | 9ab48fa65847c40ca0b5c438805c609ceaf347ce (patch) | |
| tree | d03f6bafd72db6a7bebca551be4eecc6e18be2ae | |
| parent | ed3688469091ed89559ba76c29bd6293e22b8739 (diff) | |
| download | emacs-9ab48fa65847c40ca0b5c438805c609ceaf347ce.tar.gz emacs-9ab48fa65847c40ca0b5c438805c609ceaf347ce.zip | |
Simplify the discussion of DEL. Refer to `DEL Gets Help' node
for fixing problems.
| -rw-r--r-- | man/basic.texi | 19 | ||||
| -rw-r--r-- | man/killing.texi | 42 |
2 files changed, 25 insertions, 36 deletions
diff --git a/man/basic.texi b/man/basic.texi index c64739c6526..3349c918082 100644 --- a/man/basic.texi +++ b/man/basic.texi | |||
| @@ -46,15 +46,22 @@ still before the @samp{B}. | |||
| 46 | To @dfn{delete} text you have just inserted, use the large key | 46 | To @dfn{delete} text you have just inserted, use the large key |
| 47 | labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short | 47 | labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short |
| 48 | distance above the @key{RET} or @key{ENTER} key. This is the key you | 48 | distance above the @key{RET} or @key{ENTER} key. This is the key you |
| 49 | normally use for erasing the last character that you typed. | 49 | normally use, outside Emacs, for erasing the last character that you |
| 50 | Regardless of the actual name on the key, Emacs always thinks of it as | 50 | typed. Regardless of the label on that key, Emacs always thinks of it |
| 51 | @key{DEL}, and that's what we call it in the manual. | 51 | as @key{DEL}, and that's what we call it in this manual. |
| 52 | 52 | ||
| 53 | The @key{DEL} key deletes the character @emph{before} the cursor. | 53 | The @key{DEL} key deletes the character @emph{before} the cursor. |
| 54 | As a consequence, the cursor and all the characters after it move | 54 | As a consequence, the cursor and all the characters after it move |
| 55 | backwards. If you type a printing character and then type @key{DEL}, | 55 | backwards. If you type a printing character and then type @key{DEL}, |
| 56 | they cancel out. | 56 | they cancel out. |
| 57 | 57 | ||
| 58 | On most computers, Emacs recognizes automatically which key ought to | ||
| 59 | be @key{DEL}, and sets it up that way. But in some cases, especially | ||
| 60 | with text-only terminals, you will need to tell Emacs which key to use | ||
| 61 | for that purpose. If the large key not far above the @key{RET} or | ||
| 62 | @key{ENTER} key doesn't delete backwards, you need to do this. | ||
| 63 | @xref{DEL Gets Help}. | ||
| 64 | |||
| 58 | Many keyboards have both a @key{BACKSPACE} key a short ways above | 65 | Many keyboards have both a @key{BACKSPACE} key a short ways above |
| 59 | @key{RET} or @key{ENTER}, and a @key{DELETE} key elsewhere. In that | 66 | @key{RET} or @key{ENTER}, and a @key{DELETE} key elsewhere. In that |
| 60 | case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key | 67 | case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key |
| @@ -62,12 +69,6 @@ does something else---it deletes ``forwards,'' deleting the character | |||
| 62 | after point, the one underneath the cursor, like @kbd{C-d} (see | 69 | after point, the one underneath the cursor, like @kbd{C-d} (see |
| 63 | below). | 70 | below). |
| 64 | 71 | ||
| 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. | ||
| 70 | |||
| 71 | @kindex RET | 72 | @kindex RET |
| 72 | @cindex newline | 73 | @cindex newline |
| 73 | To end a line and start typing a new one, type @key{RET}. This | 74 | To end a line and start typing a new one, type @key{RET}. This |
diff --git a/man/killing.texi b/man/killing.texi index e041426a695..af1d6450aec 100644 --- a/man/killing.texi +++ b/man/killing.texi | |||
| @@ -118,7 +118,7 @@ kill instead, since they can erase more than one character this way. | |||
| 118 | Every keyboard has a large key, labeled @key{DEL}, @key{BACKSPACE}, | 118 | Every keyboard has a large key, labeled @key{DEL}, @key{BACKSPACE}, |
| 119 | @key{BS} or @key{DELETE}, which is a short distance above the | 119 | @key{BS} or @key{DELETE}, which is a short distance above the |
| 120 | @key{RET} or @key{ENTER} key and is normally used for erasing what you | 120 | @key{RET} or @key{ENTER} key and is normally used for erasing what you |
| 121 | have typed. Regardless of the actual name on the key, it is | 121 | have typed. Regardless of the actual name on the key, in Emacs it is |
| 122 | equivalent to @key{DEL}---or it should be. | 122 | equivalent to @key{DEL}---or it should be. |
| 123 | 123 | ||
| 124 | Many keyboards have a @key{BACKSPACE} key a short ways above | 124 | Many keyboards have a @key{BACKSPACE} key a short ways above |
| @@ -126,34 +126,22 @@ equivalent to @key{DEL}---or it should be. | |||
| 126 | case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key | 126 | case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key |
| 127 | is equivalent to @kbd{C-d}---or it should be. | 127 | is equivalent to @kbd{C-d}---or it should be. |
| 128 | 128 | ||
| 129 | @findex delete-key-deletes-forward-mode | ||
| 130 | Why do we say ``or it should be''? When Emacs starts up using a | 129 | Why do we say ``or it should be''? When Emacs starts up using a |
| 131 | window system, it determines automatically which key should be | 130 | window system, it determines automatically which key or keys should be |
| 132 | equivalent to @key{DEL}. So the @key{BACKSPACE} and/or @key{DELETE} | 131 | equivalent to @key{DEL}. So the @key{BACKSPACE} and/or @key{DELETE} |
| 133 | keys will almost surely do the right things. But on text-only | 132 | keys normally do the right things. But in some unusual cases Emacs |
| 134 | terminals, Emacs cannot tell which key is where; it has to make an | 133 | gets the wrong information from the system. If these keys don't do |
| 135 | assumption, which can be wrong. | 134 | what they ought to do, you should tell Emacs which key to use for |
| 136 | 135 | @key{DEL}. @xref{DEL Gets Help}. | |
| 137 | If the usual key for text erasure does not behave as @key{DEL}, | 136 | |
| 138 | probably that means it is really a @key{BACKSPACE} key. You can use | 137 | @findex normal-erase-is-backspace-mode |
| 139 | the command @kbd{M-x delete-key-deletes-forward-mode} to swap the | 138 | On text-only terminals, Emacs cannot tell which key is where, so it |
| 140 | meanings of @key{BACKSPACE} and @key{DEL}, so that the convenient key | 139 | follows a uniform plan which may or may not fit your keyboard. The |
| 141 | for deletion actually does deletion. To do this for every Emacs | 140 | uniform plan is that the ASCII @key{DEL} character deletes, and the |
| 142 | session, put the following line into your @file{.emacs} init file | 141 | ASCII @key{BS} (backspace) character asks for help (it is the same as |
| 143 | (@pxref{Init File}): | 142 | @kbd{C-h}). If this is not right for your keyboard, if you find that |
| 144 | 143 | the key which ought to delete backwards enters Help instead, see | |
| 145 | @lisp | 144 | @ref{DEL Gets Help}. |
| 146 | (delete-key-deletes-forward-mode 1) | ||
| 147 | @end lisp | ||
| 148 | |||
| 149 | @noindent | ||
| 150 | This also makes the @key{DELETE} key, if there is one, delete the | ||
| 151 | character after the cursor. | ||
| 152 | |||
| 153 | @vindex delete-key-deletes-forward | ||
| 154 | The variable @code{delete-key-deletes-forward} is @code{t} in the mode | ||
| 155 | where the @key{DELETE} key deletes forwards, @code{nil} if | ||
| 156 | @key{DELETE} is equivalent to @key{DEL} and deletes backwards. | ||
| 157 | 145 | ||
| 158 | @kindex M-\ | 146 | @kindex M-\ |
| 159 | @findex delete-horizontal-space | 147 | @findex delete-horizontal-space |