]> git.eshelyaron.com Git - emacs.git/commitdiff
(line-move-1): Respect `inhibit-line-move-field-capture' property.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 17 Mar 2007 19:44:21 +0000 (19:44 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 17 Mar 2007 19:44:21 +0000 (19:44 +0000)
lisp/simple.el

index 1dd6b802c050136b7c9371067e2b6f42451c5b0c..1f233de98572a4fa6d9e47d2d3d13fa56c8def70 100644 (file)
@@ -3594,7 +3594,7 @@ Outline mode sets this."
                              'end-of-buffer)
                            nil)))
            ;; Move by arg lines, but ignore invisible ones.
-           (let (done line-end)
+           (let (done)
              (while (and (> arg 0) (not done))
                ;; If the following character is currently invisible,
                ;; skip all characters with that same `invisible' property value.
@@ -3603,9 +3603,11 @@ Outline mode sets this."
                ;; Move a line.
                ;; We don't use `end-of-line', since we want to escape
                ;; from field boundaries ocurring exactly at point.
-               (let ((inhibit-field-text-motion t))
-                 (setq line-end (line-end-position)))
-               (goto-char (constrain-to-field line-end (point) t t))
+               (goto-char (constrain-to-field
+                           (let ((inhibit-field-text-motion t))
+                             (line-end-position))
+                           (point) t t
+                           'inhibit-line-move-field-capture))
                ;; If there's no invisibility here, move over the newline.
                (cond
                 ((eobp)