diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-09-16 14:14:53 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-09-16 14:14:53 +0000 |
commit | 095f9ae4085c0ba71028efdf69693576abfe1597 (patch) | |
tree | 1c853cf1b3488241486f75ce018cce91c4f11c9c /lisp/simple.el | |
parent | 0f1016635476a3feae1c4702fcf08fced5df774e (diff) | |
download | emacs-095f9ae4085c0ba71028efdf69693576abfe1597.tar.gz |
* simple.el (line-move-to-column): Revert 2006-08-03 change.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 5c7cca5b31e..7d1b71fc498 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3645,6 +3645,9 @@ Outline mode sets this." ;; This is the value the function returns. (= arg 0)) + (setq foo (list (point) + (or goal-column temporary-goal-column) + opoint forward)) (cond ((> arg 0) ;; If we did not move down as far as desired, ;; at least go to end of line. @@ -3678,6 +3681,7 @@ Outline mode sets this." ;; Move to the desired column. (line-move-to-column column) + (push (list (point) line-beg line-end) foo) (setq new (point)) ;; Process intangibility within a line. @@ -3733,10 +3737,7 @@ because what we really need is for `move-to-column' and `current-column' to be able to ignore invisible text." (if (zerop col) (beginning-of-line) - (let ((opoint (point))) - (move-to-column col) - ;; move-to-column doesn't respect field boundaries. - (goto-char (constrain-to-field (point) opoint)))) + (move-to-column col)) (when (and line-move-ignore-invisible (not (bolp)) (line-move-invisible-p (1- (point)))) |