Function: rst-forward-line-strict
rst-forward-line-strict is a byte-compiled function defined in
rst.el.gz.
Signature
(rst-forward-line-strict N &optional LIMIT)
Documentation
Try to move point to beginning of line I + N where I is the current line.
Return t if movement is successful. Otherwise don't move point and return nil. If a position is given by LIMIT, movement happened but the following line is missing and thus its beginning can not be reached but the movement reached at least LIMIT consider this a successful movement. LIMIT is ignored in other cases.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-forward-line-strict (n &optional limit)
;; testcover: ok.
"Try to move point to beginning of line I + N where I is the current line.
Return t if movement is successful. Otherwise don't move point
and return nil. If a position is given by LIMIT, movement
happened but the following line is missing and thus its beginning
can not be reached but the movement reached at least LIMIT
consider this a successful movement. LIMIT is ignored in other
cases."
(let ((start (point)))
(if (and (zerop (forward-line n))
(or (bolp)
(and limit
(>= (point) limit))))
t
(goto-char start)
nil)))