# HG changeset patch # User Chong Yidong # Date 1174160661 0 # Node ID 1a4b3e645c66847e332a13aa679704a21ed330e3 # Parent dfcd70a860431d15eb5d5af655cb2b55f0cab78c (line-move-1): Respect `inhibit-line-move-field-capture' property. diff -r dfcd70a86043 -r 1a4b3e645c66 lisp/simple.el --- a/lisp/simple.el Sat Mar 17 19:44:11 2007 +0000 +++ b/lisp/simple.el Sat Mar 17 19:44:21 2007 +0000 @@ -3594,7 +3594,7 @@ '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 @@ ;; 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)