diff options
| author | Chong Yidong | 2009-05-12 02:05:55 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-05-12 02:05:55 +0000 |
| commit | b2a42eb75de482fc4782c55864d1adf6b3d42944 (patch) | |
| tree | 31eb3973d575efaf5b55bd6d9b43070693cd784a | |
| parent | a9e3ff690bba45e6723e9d355517767d8b52d41a (diff) | |
| download | emacs-b2a42eb75de482fc4782c55864d1adf6b3d42944.tar.gz emacs-b2a42eb75de482fc4782c55864d1adf6b3d42944.zip | |
* trouble.texi (Quitting): Add other undo bindings to table.
(DEL Does Not Delete): Note that the erasure key is usually labelled
"Backspace". Remove discussion of obscure Xmodmap issue.
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/trouble.texi | 47 |
2 files changed, 23 insertions, 30 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 31b28b16e2e..566a60715ca 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-05-12 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * trouble.texi (Quitting): Add other undo bindings to table. | ||
| 4 | (DEL Does Not Delete): Note that the erasure key is usually labelled | ||
| 5 | "Backspace". Remove discussion of obscure Xmodmap issue. | ||
| 6 | |||
| 1 | 2009-05-07 Chong Yidong <cyd@stupidchicken.com> | 7 | 2009-05-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * files.texi (Visiting): Copyedits. | 9 | * files.texi (Visiting): Copyedits. |
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi index 3c0196db390..68c5fe97134 100644 --- a/doc/emacs/trouble.texi +++ b/doc/emacs/trouble.texi | |||
| @@ -30,7 +30,9 @@ invoked it (@code{abort-recursive-edit}). | |||
| 30 | Either quit or abort, whichever makes sense (@code{keyboard-escape-quit}). | 30 | Either quit or abort, whichever makes sense (@code{keyboard-escape-quit}). |
| 31 | @item M-x top-level | 31 | @item M-x top-level |
| 32 | Abort all recursive editing levels that are currently executing. | 32 | Abort all recursive editing levels that are currently executing. |
| 33 | @item C-x u | 33 | @item C-/ |
| 34 | @itemx C-x u | ||
| 35 | @itemx C-_ | ||
| 34 | Cancel a previously made change in the buffer contents (@code{undo}). | 36 | Cancel a previously made change in the buffer contents (@code{undo}). |
| 35 | @end table | 37 | @end table |
| 36 | 38 | ||
| @@ -126,10 +128,10 @@ effect only when Emacs is ready for a command. @kbd{C-]} is an | |||
| 126 | ordinary key and has its meaning only because of its binding in the | 128 | ordinary key and has its meaning only because of its binding in the |
| 127 | keymap. @xref{Recursive Edit}. | 129 | keymap. @xref{Recursive Edit}. |
| 128 | 130 | ||
| 129 | @kbd{C-x u} (@code{undo}) is not strictly speaking a way of canceling | 131 | @kbd{C-/} (@code{undo}) is not strictly speaking a way of canceling |
| 130 | a command, but you can think of it as canceling a command that already | 132 | a command, but you can think of it as canceling a command that already |
| 131 | finished executing. @xref{Undo}, for more information | 133 | finished executing. @xref{Undo}, for more information about the undo |
| 132 | about the undo facility. | 134 | facility. |
| 133 | 135 | ||
| 134 | @node Lossage, Bugs, Quitting, Top | 136 | @node Lossage, Bugs, Quitting, Top |
| 135 | @section Dealing with Emacs Trouble | 137 | @section Dealing with Emacs Trouble |
| @@ -159,26 +161,21 @@ in the Emacs distribution. Type @kbd{C-h C-f} to read the FAQ; type | |||
| 159 | @cindex @key{BACKSPACE} vs @key{DEL} | 161 | @cindex @key{BACKSPACE} vs @key{DEL} |
| 160 | @cindex usual erasure key | 162 | @cindex usual erasure key |
| 161 | 163 | ||
| 162 | Every keyboard has a large key, a little ways above the @key{RET} or | 164 | Every keyboard has a large key, usually labelled @key{Backspace}, |
| 163 | @key{ENTER} key, which you normally use outside Emacs to erase the | 165 | which is ordinarily used to erase the last character that you typed. |
| 164 | last character that you typed. We call this key @dfn{the usual | 166 | We call this key @dfn{the usual erasure key}. In Emacs, it is |
| 165 | erasure key}. In Emacs, it is supposed to be equivalent to @key{DEL}, | 167 | supposed to be equivalent to @key{DEL}. |
| 166 | and when Emacs is properly configured for your terminal, it translates | ||
| 167 | that key into the character @key{DEL}. | ||
| 168 | 168 | ||
| 169 | When Emacs starts up on a graphical display, it determines | 169 | When Emacs starts up on a graphical display, it determines |
| 170 | automatically which key should be @key{DEL}. In some unusual cases | 170 | automatically which key should be @key{DEL}. In some unusual cases, |
| 171 | Emacs gets the wrong information from the system. If the usual | 171 | Emacs gets the wrong information from the system. If the usual |
| 172 | erasure key deletes forwards instead of backwards, that is probably | 172 | erasure key deletes forwards instead of backwards, that is probably |
| 173 | what happened---Emacs ought to be treating the @key{DELETE} key as | 173 | what happened---Emacs ought to be treating the @key{Backspace} key as |
| 174 | @key{DEL}, but it isn't. | 174 | @key{DEL}, but it isn't. |
| 175 | 175 | ||
| 176 | On a graphical display, if the usual erasure key is labeled | 176 | Some keyboards also have a @key{Delete} key, which is ordinarily |
| 177 | @key{BACKSPACE} and there is a @key{DELETE} key elsewhere, but the | 177 | used to forwards. If this key deletes backward in Emacs, that too |
| 178 | @key{DELETE} key deletes backward instead of forward, that too | ||
| 179 | suggests Emacs got the wrong information---but in the opposite sense. | 178 | suggests Emacs got the wrong information---but in the opposite sense. |
| 180 | It ought to be treating the @key{BACKSPACE} key as @key{DEL}, and | ||
| 181 | treating @key{DELETE} differently, but it isn't. | ||
| 182 | 179 | ||
| 183 | On a text-only terminal, if you find the usual erasure key prompts | 180 | On a text-only terminal, if you find the usual erasure key prompts |
| 184 | for a Help command, like @kbd{Control-h}, instead of deleting a | 181 | for a Help command, like @kbd{Control-h}, instead of deleting a |
| @@ -197,9 +194,9 @@ work, if it sends character code 127. | |||
| 197 | @findex normal-erase-is-backspace-mode | 194 | @findex normal-erase-is-backspace-mode |
| 198 | To fix the problem automatically for every Emacs session, you can | 195 | To fix the problem automatically for every Emacs session, you can |
| 199 | put one of the following lines into your @file{.emacs} file | 196 | put one of the following lines into your @file{.emacs} file |
| 200 | (@pxref{Init File}). For the first case above, where @key{DELETE} | 197 | (@pxref{Init File}). For the first case above, where @key{Backspace} |
| 201 | deletes forwards instead of backwards, use this line to make | 198 | deletes forwards instead of backwards, use this line to make |
| 202 | @key{DELETE} act as @key{DEL} (resulting in behavior compatible | 199 | @key{Backspace} act as @key{DEL} (resulting in behavior compatible |
| 203 | with Emacs 20 and previous versions): | 200 | with Emacs 20 and previous versions): |
| 204 | 201 | ||
| 205 | @lisp | 202 | @lisp |
| @@ -207,8 +204,7 @@ with Emacs 20 and previous versions): | |||
| 207 | @end lisp | 204 | @end lisp |
| 208 | 205 | ||
| 209 | @noindent | 206 | @noindent |
| 210 | For the other two cases, where @key{BACKSPACE} ought to act as | 207 | For the other two cases, use this line: |
| 211 | @key{DEL}, use this line: | ||
| 212 | 208 | ||
| 213 | @lisp | 209 | @lisp |
| 214 | (normal-erase-is-backspace-mode 1) | 210 | (normal-erase-is-backspace-mode 1) |
| @@ -221,15 +217,6 @@ customize the variable @code{normal-erase-is-backspace}: the value | |||
| 221 | @key{DEL}, and @code{nil} specifies the other mode. @xref{Easy | 217 | @key{DEL}, and @code{nil} specifies the other mode. @xref{Easy |
| 222 | Customization}. | 218 | Customization}. |
| 223 | 219 | ||
| 224 | On a graphical display, it can also happen that the usual erasure key | ||
| 225 | is labeled @key{BACKSPACE}, there is a @key{DELETE} key elsewhere, and | ||
| 226 | both keys delete forward. This probably means that someone has | ||
| 227 | redefined your @key{BACKSPACE} key as a @key{DELETE} key. With X, | ||
| 228 | this is typically done with a command to the @code{xmodmap} program | ||
| 229 | when you start the server or log in. The most likely motive for this | ||
| 230 | customization was to support old versions of Emacs, so we recommend | ||
| 231 | you simply remove it now. | ||
| 232 | |||
| 233 | @node Stuck Recursive | 220 | @node Stuck Recursive |
| 234 | @subsection Recursive Editing Levels | 221 | @subsection Recursive Editing Levels |
| 235 | 222 | ||