diff options
| author | Chong Yidong | 2006-08-03 14:26:27 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-08-03 14:26:27 +0000 |
| commit | 7abcd3e393cead48a7ac8c76e6d85b40ca48effe (patch) | |
| tree | 3a4c0859dde1863fe57c24b1c2fa6c448b13133c /lisp | |
| parent | 9b7fa2975f40b82e94dadd13c049ff67ef0ef449 (diff) | |
| download | emacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.tar.gz emacs-7abcd3e393cead48a7ac8c76e6d85b40ca48effe.zip | |
* simple.el (line-move-to-column): Constrain move-to-column to
current field.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 5 |
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 @@ | |||
| 1 | 2006-08-03 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (line-move-to-column): Constrain move-to-column to | ||
| 4 | current field. | ||
| 5 | |||
| 1 | 2006-08-03 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2006-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' | |||
| 3697 | and `current-column' to be able to ignore invisible text." | 3697 | and `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)))) |