Function: forms--goto-record

forms--goto-record is a byte-compiled function defined in forms.el.gz.

Signature

(forms--goto-record RN &optional CURRENT)

Documentation

Goto record number RN.

If CURRENT is provided, it specifies the current record and can be used to speed up access to RN. Returns the number of records missing, if any.

Source Code

;; Defined in /usr/src/emacs/lisp/forms.el.gz
(defun forms--goto-record (rn &optional current)
  "Goto record number RN.
If CURRENT is provided, it specifies the current record and can be used
to speed up access to RN.  Returns the number of records missing, if any."
  (if current
      (forward-line (- rn current))
    ;; goto-line does not do what we want when the buffer is narrowed.
    (goto-char (point-min))
    (forward-line (1- rn))))