Function: comint-previous-prompt
comint-previous-prompt is an interactive and byte-compiled function
defined in comint.el.gz.
Signature
(comint-previous-prompt N)
Documentation
Move to end of Nth previous prompt in the buffer.
If comint-use-prompt-regexp is nil, then this means the beginning of
the Nth previous input field, otherwise, it means the Nth occurrence of
text matching comint-prompt-regexp.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-previous-prompt (n)
"Move to end of Nth previous prompt in the buffer.
If `comint-use-prompt-regexp' is nil, then this means the beginning of
the Nth previous `input' field, otherwise, it means the Nth occurrence of
text matching `comint-prompt-regexp'."
(interactive "^p" comint-mode)
(comint-next-prompt (- n)))