copy-all-to-buffer copies the content of the current buffer to the specified buffer