aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorChong Yidong2006-08-03 14:26:27 +0000
committerChong Yidong2006-08-03 14:26:27 +0000
commit7abcd3e393cead48a7ac8c76e6d85b40ca48effe (patch)
tree3a4c0859dde1863fe57c24b1c2fa6c448b13133c /lisp/simple.el
parent9b7fa2975f40b82e94dadd13c049ff67ef0ef449 (diff)
downloademacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.tar.gz
emacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.zip
* simple.el (line-move-to-column): Constrain move-to-column to
current field.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 2af4bbd1d76..9288ab6bd79 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3697,7 +3697,10 @@ because what we really need is for `move-to-column'
3697and `current-column' to be able to ignore invisible text." 3697and `current-column' to be able to ignore invisible text."
3698 (if (zerop col) 3698 (if (zerop col)
3699 (beginning-of-line) 3699 (beginning-of-line)
3700 (move-to-column col)) 3700 (let ((opoint (point)))
3701 (move-to-column col)
3702 ;; move-to-column doesn't respect field boundaries.
3703 (goto-char (constrain-to-field (point) opoint))))
3701 3704
3702 (when (and line-move-ignore-invisible 3705 (when (and line-move-ignore-invisible
3703 (not (bolp)) (line-move-invisible-p (1- (point)))) 3706 (not (bolp)) (line-move-invisible-p (1- (point))))