Fix documentation of delsel and of killing text
* doc/emacs/killing.texi (Appending Kills): Make sure the text with 2 spaces is not broken between 2 lines. * doc/emacs/mark.texi (Using Region): Remove the sentence about delsel mode that describes behavior which exists even without delsel mode turned on. Suggested by Petteri Hintsanen <petterih@iki.fi> in emacs-manual-bugs@gnu.org. * lisp/delsel.el (delete-selection-mode): Doc fix.
This commit is contained in:
parent
fd35804971
commit
5b38406491
3 changed files with 6 additions and 9 deletions
|
@ -415,10 +415,10 @@ This is a line @point{}of sample text.
|
||||||
@noindent
|
@noindent
|
||||||
with point shown by @point{}. If you type @kbd{M-d M-@key{DEL} M-d
|
with point shown by @point{}. If you type @kbd{M-d M-@key{DEL} M-d
|
||||||
M-@key{DEL}}, killing alternately forward and backward, you end up with
|
M-@key{DEL}}, killing alternately forward and backward, you end up with
|
||||||
@samp{a line of sample} as one entry in the kill ring, and @samp{This
|
@samp{a line of sample} as one entry in the kill ring, and
|
||||||
is@ @ text.} in the buffer. (Note the double space between @samp{is}
|
@w{@samp{This is@ @ text.}} in the buffer. (Note the double space
|
||||||
and @samp{text}, which you can clean up with @kbd{M-@key{SPC}} or
|
between @samp{is} and @samp{text}, which you can clean up with
|
||||||
@kbd{M-q}.)
|
@kbd{M-@key{SPC}} or @kbd{M-q}.)
|
||||||
|
|
||||||
Another way to kill the same text is to move back two words with
|
Another way to kill the same text is to move back two words with
|
||||||
@kbd{M-b M-b}, then kill all four words forward with @kbd{C-u M-d}.
|
@kbd{M-b M-b}, then kill all four words forward with @kbd{C-u M-d}.
|
||||||
|
|
|
@ -289,9 +289,7 @@ active---for example, typing @kbd{a} inserts the character @samp{a},
|
||||||
then deactivates the mark. Delete Selection mode, a minor mode,
|
then deactivates the mark. Delete Selection mode, a minor mode,
|
||||||
modifies this behavior: if you enable that mode, then inserting text
|
modifies this behavior: if you enable that mode, then inserting text
|
||||||
while the mark is active causes the text in the region to be deleted
|
while the mark is active causes the text in the region to be deleted
|
||||||
first. Also, commands that normally delete just one character, such
|
first. To toggle Delete Selection mode on or off, type @kbd{M-x
|
||||||
as @kbd{C-d} or @kbd{@key{DEL}}, will delete the entire region
|
|
||||||
instead. To toggle Delete Selection mode on or off, type @kbd{M-x
|
|
||||||
delete-selection-mode}.
|
delete-selection-mode}.
|
||||||
|
|
||||||
@node Mark Ring
|
@node Mark Ring
|
||||||
|
|
|
@ -79,8 +79,7 @@ a non-positive integer, and enable the mode otherwise
|
||||||
|
|
||||||
When Delete Selection mode is enabled, typed text replaces the selection
|
When Delete Selection mode is enabled, typed text replaces the selection
|
||||||
if the selection is active. Otherwise, typed text is just inserted at
|
if the selection is active. Otherwise, typed text is just inserted at
|
||||||
point regardless of any selection. Also, commands that normally delete
|
point regardless of any selection.
|
||||||
just one character will delete the entire selection instead.
|
|
||||||
|
|
||||||
See `delete-selection-helper' and `delete-selection-pre-hook' for
|
See `delete-selection-helper' and `delete-selection-pre-hook' for
|
||||||
information on adapting behavior of commands in Delete Selection mode."
|
information on adapting behavior of commands in Delete Selection mode."
|
||||||
|
|
Loading…
Add table
Reference in a new issue