# HG changeset patch # User Eli Zaretskii # Date 981442363 0 # Node ID 5a41fb5ed099aa6267b9e7028f7203844b2933ee # Parent f042a6d7e37ce022fea915508d720aedfe03b816 (kill-line): Doc fix. diff -r f042a6d7e37c -r 5a41fb5ed099 lisp/simple.el --- a/lisp/simple.el Tue Feb 06 06:22:18 2001 +0000 +++ b/lisp/simple.el Tue Feb 06 06:52:43 2001 +0000 @@ -2005,7 +2005,11 @@ If `kill-whole-line' is non-nil, then this command kills the whole line including its terminating newline, when used at the beginning of a line with no argument. As a consequence, you can always kill a whole line -by typing \\[beginning-of-line] \\[kill-line]." +by typing \\[beginning-of-line] \\[kill-line]. + +If the buffer is read-only, Emacs will beep and refrain from deleting +the line, but put the line in the kill ring anyway. This means that +you can use this command to copy text from a read-only buffer." (interactive "P") (kill-region (point) ;; It is better to move point to the other end of the kill