Function: eshell-skip-prompt
eshell-skip-prompt is a byte-compiled function defined in
em-prompt.el.gz.
This function is obsolete since 30.1.
Signature
(eshell-skip-prompt)
Documentation
Skip past the text matching regexp eshell-prompt-regexp.
If this takes us past the end of the current line, don't skip at all.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-prompt.el.gz
(defun eshell-skip-prompt ()
"Skip past the text matching regexp `eshell-prompt-regexp'.
If this takes us past the end of the current line, don't skip at all."
(declare (obsolete nil "30.1"))
(let ((eol (line-end-position)))
(if (and (looking-at eshell-prompt-regexp)
(<= (match-end 0) eol))
(goto-char (match-end 0)))))