diff options
| author | Chong Yidong | 2006-09-16 14:14:53 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-09-16 14:14:53 +0000 |
| commit | 095f9ae4085c0ba71028efdf69693576abfe1597 (patch) | |
| tree | 1c853cf1b3488241486f75ce018cce91c4f11c9c | |
| parent | 0f1016635476a3feae1c4702fcf08fced5df774e (diff) | |
| download | emacs-095f9ae4085c0ba71028efdf69693576abfe1597.tar.gz emacs-095f9ae4085c0ba71028efdf69693576abfe1597.zip | |
* simple.el (line-move-to-column): Revert 2006-08-03 change.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c4342057a6f..2aeb97e79ff 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-09-16 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (line-move-to-column): Revert 2006-08-03 change. | ||
| 4 | |||
| 1 | 2006-09-16 Eli Zaretskii <eliz@gnu.org> | 5 | 2006-09-16 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * help.el (describe-prefix-bindings): Use let, not let*. | 7 | * help.el (describe-prefix-bindings): Use let, not let*. |
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." | |||
| 3645 | ;; This is the value the function returns. | 3645 | ;; This is the value the function returns. |
| 3646 | (= arg 0)) | 3646 | (= arg 0)) |
| 3647 | 3647 | ||
| 3648 | (setq foo (list (point) | ||
| 3649 | (or goal-column temporary-goal-column) | ||
| 3650 | opoint forward)) | ||
| 3648 | (cond ((> arg 0) | 3651 | (cond ((> arg 0) |
| 3649 | ;; If we did not move down as far as desired, | 3652 | ;; If we did not move down as far as desired, |
| 3650 | ;; at least go to end of line. | 3653 | ;; at least go to end of line. |
| @@ -3678,6 +3681,7 @@ Outline mode sets this." | |||
| 3678 | 3681 | ||
| 3679 | ;; Move to the desired column. | 3682 | ;; Move to the desired column. |
| 3680 | (line-move-to-column column) | 3683 | (line-move-to-column column) |
| 3684 | (push (list (point) line-beg line-end) foo) | ||
| 3681 | (setq new (point)) | 3685 | (setq new (point)) |
| 3682 | 3686 | ||
| 3683 | ;; Process intangibility within a line. | 3687 | ;; Process intangibility within a line. |
| @@ -3733,10 +3737,7 @@ because what we really need is for `move-to-column' | |||
| 3733 | and `current-column' to be able to ignore invisible text." | 3737 | and `current-column' to be able to ignore invisible text." |
| 3734 | (if (zerop col) | 3738 | (if (zerop col) |
| 3735 | (beginning-of-line) | 3739 | (beginning-of-line) |
| 3736 | (let ((opoint (point))) | 3740 | (move-to-column col)) |
| 3737 | (move-to-column col) | ||
| 3738 | ;; move-to-column doesn't respect field boundaries. | ||
| 3739 | (goto-char (constrain-to-field (point) opoint)))) | ||
| 3740 | 3741 | ||
| 3741 | (when (and line-move-ignore-invisible | 3742 | (when (and line-move-ignore-invisible |
| 3742 | (not (bolp)) (line-move-invisible-p (1- (point)))) | 3743 | (not (bolp)) (line-move-invisible-p (1- (point)))) |