aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-05-12 02:05:55 +0000
committerChong Yidong2009-05-12 02:05:55 +0000
commitb2a42eb75de482fc4782c55864d1adf6b3d42944 (patch)
tree31eb3973d575efaf5b55bd6d9b43070693cd784a
parenta9e3ff690bba45e6723e9d355517767d8b52d41a (diff)
downloademacs-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/ChangeLog6
-rw-r--r--doc/emacs/trouble.texi47
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 @@
12009-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
12009-05-07 Chong Yidong <cyd@stupidchicken.com> 72009-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}).
30Either quit or abort, whichever makes sense (@code{keyboard-escape-quit}). 30Either quit or abort, whichever makes sense (@code{keyboard-escape-quit}).
31@item M-x top-level 31@item M-x top-level
32Abort all recursive editing levels that are currently executing. 32Abort all recursive editing levels that are currently executing.
33@item C-x u 33@item C-/
34@itemx C-x u
35@itemx C-_
34Cancel a previously made change in the buffer contents (@code{undo}). 36Cancel 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
126ordinary key and has its meaning only because of its binding in the 128ordinary key and has its meaning only because of its binding in the
127keymap. @xref{Recursive Edit}. 129keymap. @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
130a command, but you can think of it as canceling a command that already 132a command, but you can think of it as canceling a command that already
131finished executing. @xref{Undo}, for more information 133finished executing. @xref{Undo}, for more information about the undo
132about the undo facility. 134facility.
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 165which is ordinarily used to erase the last character that you typed.
164last character that you typed. We call this key @dfn{the usual 166We call this key @dfn{the usual erasure key}. In Emacs, it is
165erasure key}. In Emacs, it is supposed to be equivalent to @key{DEL}, 167supposed to be equivalent to @key{DEL}.
166and when Emacs is properly configured for your terminal, it translates
167that 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
170automatically which key should be @key{DEL}. In some unusual cases 170automatically which key should be @key{DEL}. In some unusual cases,
171Emacs gets the wrong information from the system. If the usual 171Emacs gets the wrong information from the system. If the usual
172erasure key deletes forwards instead of backwards, that is probably 172erasure key deletes forwards instead of backwards, that is probably
173what happened---Emacs ought to be treating the @key{DELETE} key as 173what 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 177used to forwards. If this key deletes backward in Emacs, that too
178@key{DELETE} key deletes backward instead of forward, that too
179suggests Emacs got the wrong information---but in the opposite sense. 178suggests Emacs got the wrong information---but in the opposite sense.
180It ought to be treating the @key{BACKSPACE} key as @key{DEL}, and
181treating @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
184for a Help command, like @kbd{Control-h}, instead of deleting a 181for 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
199put one of the following lines into your @file{.emacs} file 196put 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}
201deletes forwards instead of backwards, use this line to make 198deletes 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
203with Emacs 20 and previous versions): 200with 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
210For the other two cases, where @key{BACKSPACE} ought to act as 207For 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
222Customization}. 218Customization}.
223 219
224 On a graphical display, it can also happen that the usual erasure key
225is labeled @key{BACKSPACE}, there is a @key{DELETE} key elsewhere, and
226both keys delete forward. This probably means that someone has
227redefined your @key{BACKSPACE} key as a @key{DELETE} key. With X,
228this is typically done with a command to the @code{xmodmap} program
229when you start the server or log in. The most likely motive for this
230customization was to support old versions of Emacs, so we recommend
231you 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