Manipulate caret, selection and range.