Function: goto-line-relative

goto-line-relative is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(goto-line-relative LINE &optional BUFFER)

Documentation

Go to LINE, counting from line at (point-min).

The line number is relative to the accessible portion of the narrowed buffer. The argument BUFFER is the same as in the function goto-line.

Probably introduced at or before Emacs version 28.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun goto-line-relative (line &optional buffer)
  "Go to LINE, counting from line at (point-min).
The line number is relative to the accessible portion of the narrowed
buffer.  The argument BUFFER is the same as in the function `goto-line'."
  (declare (interactive-only forward-line))
  (interactive (goto-line-read-args t))
  (with-suppressed-warnings ((interactive-only goto-line))
    (goto-line line buffer t)))