# HG changeset patch # User Chong Yidong # Date 1161147509 0 # Node ID 5fdade8e4fefc4d756396ff23e44f081935b19b4 # Parent f2b75b711f12e6b7a29a0df7e79a43c5742e686a * simple.el (line-move-1): During fields during motion to the beginning of line to avoid getting point stuck. diff -r f2b75b711f12 -r 5fdade8e4fef lisp/ChangeLog --- a/lisp/ChangeLog Wed Oct 18 04:18:11 2006 +0000 +++ b/lisp/ChangeLog Wed Oct 18 04:58:29 2006 +0000 @@ -1,3 +1,8 @@ +2006-10-18 Chong Yidong + + * simple.el (line-move-1): During fields during motion to the + beginning of line to avoid getting point stuck. + 2006-10-18 Martin Rudalics * textmodes/flyspell.el (flyspell-word-search-backward): Set diff -r f2b75b711f12 -r 5fdade8e4fef lisp/simple.el --- a/lisp/simple.el Wed Oct 18 04:18:11 2006 +0000 +++ b/lisp/simple.el Wed Oct 18 04:58:29 2006 +0000 @@ -3625,7 +3625,14 @@ ;; The logic of this is the same as the loop above, ;; it just goes in the other direction. (while (and (< arg 0) (not done)) - (beginning-of-line) + ;; For completely consistency with the forward-motion + ;; case, we should call beginning-of-line here. + ;; However, if point is inside a field and on a + ;; continued line, the call to (vertical-motion -1) + ;; below won't move us back far enough; then we return + ;; to the same column in line-move-finish, and point + ;; gets stuck -- cyd + (forward-line 0) (cond ((bobp) (if (not noerror)