aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-08-03 14:26:27 +0000
committerChong Yidong2006-08-03 14:26:27 +0000
commit7abcd3e393cead48a7ac8c76e6d85b40ca48effe (patch)
tree3a4c0859dde1863fe57c24b1c2fa6c448b13133c
parent9b7fa2975f40b82e94dadd13c049ff67ef0ef449 (diff)
downloademacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.tar.gz
emacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.zip
* simple.el (line-move-to-column): Constrain move-to-column to
current field.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 28c8ac15e40..d6ca6734af4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-08-03 Chong Yidong <cyd@stupidchicken.com>
2
3 * simple.el (line-move-to-column): Constrain move-to-column to
4 current field.
5
12006-08-03 Stefan Monnier <monnier@iro.umontreal.ca> 62006-08-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * font-lock.el (font-lock-beg, font-lock-end) 8 * font-lock.el (font-lock-beg, font-lock-end)
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))))