diff options
| author | Chong Yidong | 2006-10-18 04:58:29 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-10-18 04:58:29 +0000 |
| commit | ac6701ea5ce8fb50dc25ad0b90a6d13009fd8cdb (patch) | |
| tree | 40dd9fcb1827de7b5df4ef573b53a6988b8952f1 | |
| parent | 7b7341f8c60abb6bdaf7d25e06ad417968f11b5e (diff) | |
| download | emacs-ac6701ea5ce8fb50dc25ad0b90a6d13009fd8cdb.tar.gz emacs-ac6701ea5ce8fb50dc25ad0b90a6d13009fd8cdb.zip | |
* simple.el (line-move-1): During fields during motion to the
beginning of line to avoid getting point stuck.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 551c17b8dda..1bd965b677d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-10-18 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (line-move-1): During fields during motion to the | ||
| 4 | beginning of line to avoid getting point stuck. | ||
| 5 | |||
| 1 | 2006-10-18 Martin Rudalics <rudalics@gmx.at> | 6 | 2006-10-18 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * textmodes/flyspell.el (flyspell-word-search-backward): Set | 8 | * textmodes/flyspell.el (flyspell-word-search-backward): Set |
diff --git a/lisp/simple.el b/lisp/simple.el index 6655539a618..0d16e6a79eb 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3625,7 +3625,14 @@ Outline mode sets this." | |||
| 3625 | ;; The logic of this is the same as the loop above, | 3625 | ;; The logic of this is the same as the loop above, |
| 3626 | ;; it just goes in the other direction. | 3626 | ;; it just goes in the other direction. |
| 3627 | (while (and (< arg 0) (not done)) | 3627 | (while (and (< arg 0) (not done)) |
| 3628 | (beginning-of-line) | 3628 | ;; For completely consistency with the forward-motion |
| 3629 | ;; case, we should call beginning-of-line here. | ||
| 3630 | ;; However, if point is inside a field and on a | ||
| 3631 | ;; continued line, the call to (vertical-motion -1) | ||
| 3632 | ;; below won't move us back far enough; then we return | ||
| 3633 | ;; to the same column in line-move-finish, and point | ||
| 3634 | ;; gets stuck -- cyd | ||
| 3635 | (forward-line 0) | ||
| 3629 | (cond | 3636 | (cond |
| 3630 | ((bobp) | 3637 | ((bobp) |
| 3631 | (if (not noerror) | 3638 | (if (not noerror) |