1 |
@c This is part of the Emacs manual. |
@c This is part of the Emacs manual. |
2 |
@c Copyright (C) 1985,86,87,93,94,95,97,00,2001 Free Software Foundation, Inc. |
@c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2004 |
3 |
|
@c Free Software Foundation, Inc. |
4 |
@c See file emacs.texi for copying conditions. |
@c See file emacs.texi for copying conditions. |
5 |
@iftex |
@iftex |
6 |
@chapter Killing and Moving Text |
@chapter Killing and Moving Text |
50 |
You cannot kill read-only text, since such text does not allow any |
You cannot kill read-only text, since such text does not allow any |
51 |
kind of modification. But some users like to use the kill commands to |
kind of modification. But some users like to use the kill commands to |
52 |
copy read-only text into the kill ring, without actually changing it. |
copy read-only text into the kill ring, without actually changing it. |
53 |
If you set the variable @code{kill-read-only-ok} to a non-@code{nil} |
Therefore, the kill commands work specially in a read-only buffer: |
54 |
value, the kill commands work specially in a read-only buffer: they |
they move over text, and copy it to the kill ring, without actually |
55 |
move over text, and copy it to the kill ring, without actually |
deleting it from the buffer. Normally, Emacs beeps and prints an |
56 |
deleting it from the buffer. When this happens, a message in the echo |
error message when this happens. But if you set the variable |
57 |
area tells you what is happening. |
@code{kill-read-only-ok} to a non-@code{nil} value, it just prints a |
58 |
|
message in the echo area, telling you what is happening. |
59 |
|
|
60 |
The delete commands include @kbd{C-d} (@code{delete-char}) and |
The delete commands include @kbd{C-d} (@code{delete-char}) and |
61 |
@key{DEL} (@code{delete-backward-char}), which delete only one |
@key{DEL} (@code{delete-backward-char}), which delete only one |