Use delete-and-extract-region to avoid scrolling when move text at the top of the buffer