Function: eshell-previous-input-string

eshell-previous-input-string is a byte-compiled function defined in em-hist.el.gz.

Signature

(eshell-previous-input-string ARG)

Documentation

Return the string ARG places along the input ring.

Moves relative to eshell-history-index.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-previous-input-string (arg)
  "Return the string ARG places along the input ring.
Moves relative to `eshell-history-index'."
  (eshell-get-history (if eshell-history-index
			  (mod (+ arg eshell-history-index)
			       (ring-length eshell-history-ring))
			arg)))