Use forward-line instead of beginning-of-line
Document show location function