aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-03-14 01:23:52 +0000
committerRichard M. Stallman2001-03-14 01:23:52 +0000
commit9ab48fa65847c40ca0b5c438805c609ceaf347ce (patch)
treed03f6bafd72db6a7bebca551be4eecc6e18be2ae
parented3688469091ed89559ba76c29bd6293e22b8739 (diff)
downloademacs-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.texi19
-rw-r--r--man/killing.texi42
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
47labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short 47labeled @key{DEL}, @key{BACKSPACE} or @key{DELETE} which is a short
48distance above the @key{RET} or @key{ENTER} key. This is the key you 48distance above the @key{RET} or @key{ENTER} key. This is the key you
49normally use for erasing the last character that you typed. 49normally use, outside Emacs, for erasing the last character that you
50Regardless of the actual name on the key, Emacs always thinks of it as 50typed. 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. 51as @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.
54As a consequence, the cursor and all the characters after it move 54As a consequence, the cursor and all the characters after it move
55backwards. If you type a printing character and then type @key{DEL}, 55backwards. If you type a printing character and then type @key{DEL},
56they cancel out. 56they cancel out.
57 57
58 On most computers, Emacs recognizes automatically which key ought to
59be @key{DEL}, and sets it up that way. But in some cases, especially
60with text-only terminals, you will need to tell Emacs which key to use
61for 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
60case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key 67case, 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
62after point, the one underneath the cursor, like @kbd{C-d} (see 69after point, the one underneath the cursor, like @kbd{C-d} (see
63below). 70below).
64 71
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.
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
121have typed. Regardless of the actual name on the key, it is 121have typed. Regardless of the actual name on the key, in Emacs it is
122equivalent to @key{DEL}---or it should be. 122equivalent 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.
126case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key 126case, the @key{BACKSPACE} key is @key{DEL}, and the @key{DELETE} key
127is equivalent to @kbd{C-d}---or it should be. 127is 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
131window system, it determines automatically which key should be 130window system, it determines automatically which key or keys should be
132equivalent to @key{DEL}. So the @key{BACKSPACE} and/or @key{DELETE} 131equivalent to @key{DEL}. So the @key{BACKSPACE} and/or @key{DELETE}
133keys will almost surely do the right things. But on text-only 132keys normally do the right things. But in some unusual cases Emacs
134terminals, Emacs cannot tell which key is where; it has to make an 133gets the wrong information from the system. If these keys don't do
135assumption, which can be wrong. 134what 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
138probably that means it is really a @key{BACKSPACE} key. You can use 137@findex normal-erase-is-backspace-mode
139the 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
140meanings of @key{BACKSPACE} and @key{DEL}, so that the convenient key 139follows a uniform plan which may or may not fit your keyboard. The
141for deletion actually does deletion. To do this for every Emacs 140uniform plan is that the ASCII @key{DEL} character deletes, and the
142session, put the following line into your @file{.emacs} init file 141ASCII @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 143the 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
150This also makes the @key{DELETE} key, if there is one, delete the
151character after the cursor.
152
153@vindex delete-key-deletes-forward
154The variable @code{delete-key-deletes-forward} is @code{t} in the mode
155where 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