mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
(kill-whole-line): Use "p" instead of "P" in interactive form.
This commit is contained in:
parent
affa509c00
commit
f8b0f284a3
@ -2397,8 +2397,7 @@ With prefix arg, kill that many lines starting from the current line.
|
|||||||
If arg is negative, kill backward. Also kill the preceding newline.
|
If arg is negative, kill backward. Also kill the preceding newline.
|
||||||
\(This is meant to make C-x z work well with negative arguments.\)
|
\(This is meant to make C-x z work well with negative arguments.\)
|
||||||
If arg is zero, kill current line but exclude the trailing newline."
|
If arg is zero, kill current line but exclude the trailing newline."
|
||||||
(interactive "P")
|
(interactive "p")
|
||||||
(setq arg (prefix-numeric-value arg))
|
|
||||||
(if (and (> arg 0) (eobp) (save-excursion (forward-visible-line 0) (eobp)))
|
(if (and (> arg 0) (eobp) (save-excursion (forward-visible-line 0) (eobp)))
|
||||||
(signal 'end-of-buffer nil))
|
(signal 'end-of-buffer nil))
|
||||||
(if (and (< arg 0) (bobp) (save-excursion (end-of-visible-line) (bobp)))
|
(if (and (< arg 0) (bobp) (save-excursion (end-of-visible-line) (bobp)))
|
||||||
|
Loading…
Reference in New Issue
Block a user