From d3f227849413878bb3056be28fc96cd4372015dc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 6 Feb 2001 06:54:56 +0000 Subject: [PATCH] (kill-line): Doc fix. --- lisp/ChangeLog | 4 ++++ lisp/simple.el | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a55a634dc05..ad4725b524f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2001-02-06 Eli Zaretskii + + * simple.el (kill-line): Doc fix. + 2001-02-05 Dave Love * loadup.el: Revert last two changes -- bootstrapping works with diff --git a/lisp/simple.el b/lisp/simple.el index d04a3b0091e..f4d03ff2226 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2005,7 +2005,11 @@ To kill a whole line, when point is not at the beginning, type \ 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 -- 2.39.5