Function: eshell-previous-matching-input-string

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

Signature

(eshell-previous-matching-input-string REGEXP ARG)

Documentation

Return the string matching REGEXP 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-matching-input-string (regexp arg)
  "Return the string matching REGEXP ARG places along the input ring.
Moves relative to `eshell-history-index'."
  (let* ((pos (eshell-previous-matching-input-string-position regexp arg)))
    (if pos (eshell-get-history pos))))