Function: eshell-previous-prompt

eshell-previous-prompt is an interactive and byte-compiled function defined in em-prompt.el.gz.

Signature

(eshell-previous-prompt N)

Documentation

Move to end of Nth previous prompt in the buffer.

See eshell-prompt-regexp.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-prompt.el.gz
(defun eshell-previous-prompt (n)
  "Move to end of Nth previous prompt in the buffer.
See `eshell-prompt-regexp'."
  (interactive "p")
  (forward-line 0)            ; Don't count prompt on current line.
  (eshell-next-prompt (- n)))