*** simple.el.~1.888.~ Sat Nov 10 09:23:20 2007 --- simple.el Sun Nov 18 16:02:42 2007 *************** *** 3862,3868 **** (save-excursion ;; Like end-of-line but ignores fields. (skip-chars-forward "^\n") ! (while (and (not (eobp)) (invisible-p (point))) (goto-char (next-char-property-change (point))) (skip-chars-forward "^\n")) (point)))) --- 3862,3869 ---- (save-excursion ;; Like end-of-line but ignores fields. (skip-chars-forward "^\n") ! (while (and line-move-ignore-invisible ! (not (eobp)) (invisible-p (point))) (goto-char (next-char-property-change (point))) (skip-chars-forward "^\n")) (point)))) *************** *** 3940,3948 **** This function works only in certain cases, because what we really need is for `move-to-column' and `current-column' to be able to ignore invisible text." ! (if (zerop col) ! (beginning-of-line) (move-to-column col)) (when (and line-move-ignore-invisible (not (bolp)) (invisible-p (1- (point)))) --- 3941,3956 ---- This function works only in certain cases, because what we really need is for `move-to-column' and `current-column' to be able to ignore invisible text." ! (cond ! ((zerop col) ! (beginning-of-line)) ! (line-move-ignore-invisible (move-to-column col)) + (t + ;; Tedious. + (save-restriction + (narrow-to-region (line-beginning-position) (line-end-position)) + (move-to-column col)))) (when (and line-move-ignore-invisible (not (bolp)) (invisible-p (1- (point))))