Function: inferior-octave
inferior-octave is an autoloaded, interactive and byte-compiled
function defined in octave.el.gz.
Signature
(inferior-octave &optional ARG)
Documentation
Run an inferior Octave process, I/O via inferior-octave-buffer.
This buffer is put in Inferior Octave mode. See inferior-octave-mode.
Unless ARG is non-nil, switches to this buffer.
The elements of the list inferior-octave-startup-args are sent as
command line arguments to the inferior Octave process on startup.
Additional commands to be executed on startup can be provided either in
the file specified by inferior-octave-startup-file or by the default
startup file, ~/.emacs-octave.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/octave.el.gz
;;;###autoload
(defun inferior-octave (&optional arg)
"Run an inferior Octave process, I/O via `inferior-octave-buffer'.
This buffer is put in Inferior Octave mode. See `inferior-octave-mode'.
Unless ARG is non-nil, switches to this buffer.
The elements of the list `inferior-octave-startup-args' are sent as
command line arguments to the inferior Octave process on startup.
Additional commands to be executed on startup can be provided either in
the file specified by `inferior-octave-startup-file' or by the default
startup file, `~/.emacs-octave'."
(interactive "P")
(let ((buffer (get-buffer-create inferior-octave-buffer)))
(unless arg
(pop-to-buffer buffer))
(unless (comint-check-proc buffer)
(with-current-buffer buffer
(inferior-octave-startup)
(inferior-octave-mode)))
buffer))