Function: picture-newline

picture-newline is an interactive and byte-compiled function defined in picture.el.gz.

Signature

(picture-newline ARG)

Documentation

Move to the beginning of the following line.

With argument, moves that many lines (up, if negative argument); always moves to the beginning of a line.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/picture.el.gz
(defun picture-newline (arg)
  "Move to the beginning of the following line.
With argument, moves that many lines (up, if negative argument);
always moves to the beginning of a line."
  (interactive "^p")
  (let ((start (point))
        (lines-left (forward-line arg)))
    (if (and (eobp)
             (> (point) start))
        (newline))
    (if (> lines-left 0)
        (newline lines-left))))