Function: octave-send-line
octave-send-line is an interactive and byte-compiled function defined
in octave.el.gz.
Signature
(octave-send-line &optional ARG)
Documentation
Send current Octave code line to the inferior Octave process.
With positive prefix ARG, send that many lines.
If octave-send-line-auto-forward is non-nil, go to the next unsent
code line.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/octave.el.gz
(defun octave-send-line (&optional arg)
"Send current Octave code line to the inferior Octave process.
With positive prefix ARG, send that many lines.
If `octave-send-line-auto-forward' is non-nil, go to the next unsent
code line."
(interactive "P")
(or arg (setq arg 1))
(if (> arg 0)
(let (beg end)
(beginning-of-line)
(setq beg (point))
(octave-next-code-line (- arg 1))
(end-of-line)
(setq end (point))
(if octave-send-line-auto-forward
(octave-next-code-line 1))
(octave-send-region beg end))))