Function: vcursor-next-line
vcursor-next-line is an interactive and byte-compiled function defined
in vcursor.el.gz.
Signature
(vcursor-next-line ARG)
Documentation
Move the virtual cursor forward ARG lines.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vcursor.el.gz
(defun vcursor-next-line (arg)
"Move the virtual cursor forward ARG lines."
;; This is next-line rewritten for the vcursor. Maybe it would
;; be easier simply to rewrite line-move.
(interactive "p")
(let (temporary-goal-column opoint text)
(save-excursion
(vcursor-locate)
(setq temporary-goal-column
(if (or (eq last-command 'vcursor-next-line)
(eq last-command 'vcursor-previous-line))
(progn
(setq last-command 'next-line) ; trick line-move
vcursor-temp-goal-column)
(if (and track-eol (eolp)
(or (not (bolp)) (eq last-command 'end-of-line)))
9999
(current-column)))
opoint (point))
(line-move arg)
(and (eq opoint (point-max)) (eq opoint (point))
(signal 'end-of-buffer nil))
(if vcursor-copy-flag (setq text (buffer-substring opoint (point))))
(vcursor-move (point))
(setq vcursor-temp-goal-column temporary-goal-column
vcursor-last-command t))
(if text (vcursor-insert text)))
)