GNU Info

Info Node: (emacs-lisp-intro.info)copy-region-as-kill

(emacs-lisp-intro.info)copy-region-as-kill


Next: cons & search-fwd Review Prev: defvar Up: Cutting & Storing Text
Enter node , (file) or (file)node

`copy-region-as-kill'
=====================

   The `copy-region-as-kill' function copies a region of text from a
buffer and (via either `kill-append' or `kill-new') saves it in the
`kill-ring'.

   If you call `copy-region-as-kill' immediately after a `kill-region'
command, Emacs appends the newly copied text to the previously copied
text.  This means that if you yank back the text, you get it all, from
both this and the previous operation.  On the other hand, if some other
command precedes the `copy-region-as-kill', the function copies the
text into a separate entry in the kill ring.

Complete copy-region-as-kill
The complete function definition.
copy-region-as-kill body
The body of `copy-region-as-kill'.

automatically generated by info2www version 1.2.2.9