Use line-end-position rather than end-of-line, etc.