Function: eshell-parse-command-input
eshell-parse-command-input is a byte-compiled function defined in
esh-mode.el.gz.
Signature
(eshell-parse-command-input BEG END &optional ARGS)
Documentation
Parse the command input from BEG to END.
The difference is that eshell-parse-command expects a complete
command string (and will error if it doesn't get one), whereas this
function will inform the caller whether more input is required.
If nil is returned, more input is necessary (probably because a multi-line input string wasn't terminated properly). Otherwise, it will return the parsed command.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-mode.el.gz
(defun eshell-parse-command-input (beg end &optional args)
"Parse the command input from BEG to END.
The difference is that `eshell-parse-command' expects a complete
command string (and will error if it doesn't get one), whereas this
function will inform the caller whether more input is required.
If nil is returned, more input is necessary (probably because a
multi-line input string wasn't terminated properly). Otherwise, it
will return the parsed command."
(let (delim command)
(if (setq delim
(catch 'eshell-incomplete
(ignore
(setq command (eshell-parse-command (cons beg end)
args t)))))
(ignore
(message "Expecting completion of delimiter %s ..."
(if (listp delim)
(car delim)
delim)))
command)))