Function: comint-skip-prompt
comint-skip-prompt is a byte-compiled function defined in
comint.el.gz.
Signature
(comint-skip-prompt)
Documentation
Skip past the text matching regexp comint-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/comint.el.gz
(defun comint-skip-prompt ()
"Skip past the text matching regexp `comint-prompt-regexp'.
If this takes us past the end of the current line, don't skip at all."
(if (and (looking-at comint-prompt-regexp)
(<= (match-end 0) (line-end-position)))
(goto-char (match-end 0))))