Function: bookmark-kill-line
bookmark-kill-line is a byte-compiled function defined in
bookmark.el.gz.
Signature
(bookmark-kill-line &optional NEWLINE-TOO)
Documentation
Kill from point to end of line.
If optional arg NEWLINE-TOO is non-nil, delete the newline too. Does not affect the kill ring.
Source Code
;; Defined in /usr/src/emacs/lisp/bookmark.el.gz
(defun bookmark-kill-line (&optional newline-too)
"Kill from point to end of line.
If optional arg NEWLINE-TOO is non-nil, delete the newline too.
Does not affect the kill ring."
(let ((eol (line-end-position)))
(delete-region (point) eol)
(when (and newline-too (= (following-char) ?\n))
(delete-char 1))))