Function: eshell/compile
eshell/compile is a byte-compiled function defined in em-unix.el.gz.
Signature
(eshell/compile &rest ARGS)
Documentation
Run an external COMMAND using a compilation buffer when possible.
See eshell-compile.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-unix.el.gz
(defun eshell/compile (&rest args)
"Run an external COMMAND using a compilation buffer when possible.
See `eshell-compile'."
(eshell-eval-using-options
"compile" args
'((?m "mode" t mode "the mode to set in the compilation buffer")
(?i "interactive" 'interactive method "always open a compilation buffer")
(?p "plain" 'plain method "always write to stdout")
:usage "[-p | -i] [-m MODE] COMMAND...
Run COMMAND in a compilation buffer when outputting to the screen and
not part of a pipeline or subcommand."
:parse-leading-options-only)
(when (stringp mode)
(setq mode (intern mode)))
(eshell-compile (car args) (cdr args) method mode)))