diff options
| author | Chong Yidong | 2007-03-17 19:44:21 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-03-17 19:44:21 +0000 |
| commit | 0788987302b3ae02bdd6a101dc2d0503d45b37d1 (patch) | |
| tree | dd5de7811850126411d8c06c764029bb4becd315 | |
| parent | f24478c1c500c5538c8e8b307e06331b92bb8f58 (diff) | |
| download | emacs-0788987302b3ae02bdd6a101dc2d0503d45b37d1.tar.gz emacs-0788987302b3ae02bdd6a101dc2d0503d45b37d1.zip | |
(line-move-1): Respect `inhibit-line-move-field-capture' property.
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 1dd6b802c05..1f233de9857 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3594,7 +3594,7 @@ Outline mode sets this." | |||
| 3594 | 'end-of-buffer) | 3594 | 'end-of-buffer) |
| 3595 | nil))) | 3595 | nil))) |
| 3596 | ;; Move by arg lines, but ignore invisible ones. | 3596 | ;; Move by arg lines, but ignore invisible ones. |
| 3597 | (let (done line-end) | 3597 | (let (done) |
| 3598 | (while (and (> arg 0) (not done)) | 3598 | (while (and (> arg 0) (not done)) |
| 3599 | ;; If the following character is currently invisible, | 3599 | ;; If the following character is currently invisible, |
| 3600 | ;; skip all characters with that same `invisible' property value. | 3600 | ;; skip all characters with that same `invisible' property value. |
| @@ -3603,9 +3603,11 @@ Outline mode sets this." | |||
| 3603 | ;; Move a line. | 3603 | ;; Move a line. |
| 3604 | ;; We don't use `end-of-line', since we want to escape | 3604 | ;; We don't use `end-of-line', since we want to escape |
| 3605 | ;; from field boundaries ocurring exactly at point. | 3605 | ;; from field boundaries ocurring exactly at point. |
| 3606 | (let ((inhibit-field-text-motion t)) | 3606 | (goto-char (constrain-to-field |
| 3607 | (setq line-end (line-end-position))) | 3607 | (let ((inhibit-field-text-motion t)) |
| 3608 | (goto-char (constrain-to-field line-end (point) t t)) | 3608 | (line-end-position)) |
| 3609 | (point) t t | ||
| 3610 | 'inhibit-line-move-field-capture)) | ||
| 3609 | ;; If there's no invisibility here, move over the newline. | 3611 | ;; If there's no invisibility here, move over the newline. |
| 3610 | (cond | 3612 | (cond |
| 3611 | ((eobp) | 3613 | ((eobp) |