diff options
| author | Stefan Monnier | 2014-01-20 14:15:10 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-01-20 14:15:10 -0500 |
| commit | 6cc750eec443c58c48b0fbf0ee65f2de8052cccf (patch) | |
| tree | 19e16985c03f5be4e40ffaea9a158f79d0a40236 | |
| parent | 009581fa6558c0ed4f804e7fecdc652ec3532810 (diff) | |
| download | emacs-6cc750eec443c58c48b0fbf0ee65f2de8052cccf.tar.gz emacs-6cc750eec443c58c48b0fbf0ee65f2de8052cccf.zip | |
* lisp/simple.el (move-beginning-of-line): Make sure we don't move forward.
Fixes: debbugs:16497
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a838762a1b..98df632bf89 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-01-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * simple.el (move-beginning-of-line): Make sure we don't move forward | ||
| 4 | (bug#16497). | ||
| 5 | |||
| 1 | 2014-01-20 Juri Linkov <juri@jurta.org> | 6 | 2014-01-20 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * saveplace.el (toggle-save-place, save-place-to-alist) | 8 | * saveplace.el (toggle-save-place, save-place-to-alist) |
diff --git a/lisp/simple.el b/lisp/simple.el index ef965aa6fe5..8e23b0804ca 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5534,9 +5534,9 @@ To ignore intangibility, bind `inhibit-point-motion-hooks' to t." | |||
| 5534 | (goto-char (previous-char-property-change (point))) | 5534 | (goto-char (previous-char-property-change (point))) |
| 5535 | (skip-chars-backward "^\n")) | 5535 | (skip-chars-backward "^\n")) |
| 5536 | 5536 | ||
| 5537 | ;; Now find first visible char in the line | 5537 | ;; Now find first visible char in the line. |
| 5538 | (while (and (not (eobp)) (invisible-p (point))) | 5538 | (while (and (< (point) orig) (invisible-p (point))) |
| 5539 | (goto-char (next-char-property-change (point)))) | 5539 | (goto-char (next-char-property-change (point) orig))) |
| 5540 | (setq first-vis (point)) | 5540 | (setq first-vis (point)) |
| 5541 | 5541 | ||
| 5542 | ;; See if fields would stop us from reaching FIRST-VIS. | 5542 | ;; See if fields would stop us from reaching FIRST-VIS. |