+2014-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * simple.el (move-beginning-of-line): Make sure we don't move forward
+ (bug#16497).
+
2014-01-20 Juri Linkov <juri@jurta.org>
* saveplace.el (toggle-save-place, save-place-to-alist)
(goto-char (previous-char-property-change (point)))
(skip-chars-backward "^\n"))
- ;; Now find first visible char in the line
- (while (and (not (eobp)) (invisible-p (point)))
- (goto-char (next-char-property-change (point))))
+ ;; Now find first visible char in the line.
+ (while (and (< (point) orig) (invisible-p (point)))
+ (goto-char (next-char-property-change (point) orig)))
(setq first-vis (point))
;; See if fields would stop us from reaching FIRST-VIS.