Function: vcursor-copy-line
vcursor-copy-line is an interactive and byte-compiled function defined
in vcursor.el.gz.
Signature
(vcursor-copy-line ARG)
Documentation
Copy up to ARGth line after virtual cursor position.
With no argument, copy to the end of the current line.
Behavior with regard to newlines is similar (but not identical) to
kill-line; the main difference is that whitespace at the end of the
line is treated like ordinary characters.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vcursor.el.gz
(defun vcursor-copy-line (arg)
"Copy up to ARGth line after virtual cursor position.
With no argument, copy to the end of the current line.
Behavior with regard to newlines is similar (but not identical) to
`kill-line'; the main difference is that whitespace at the end of the
line is treated like ordinary characters."
(interactive "P")
(let* ((num (prefix-numeric-value arg))
(count (vcursor-get-char-count #'end-of-line num)))
(vcursor-copy (if (or (= count 0) arg) (1+ count) count)))
)