Function: term-previous-matching-input-string
term-previous-matching-input-string is a byte-compiled function
defined in term.el.gz.
Signature
(term-previous-matching-input-string REGEXP ARG)
Documentation
Return the string matching REGEXP ARG places along the input ring.
Moves relative to term-input-ring-index.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-previous-matching-input-string (regexp arg)
"Return the string matching REGEXP ARG places along the input ring.
Moves relative to `term-input-ring-index'."
(let* ((pos (term-previous-matching-input-string-position regexp arg)))
(when pos (ring-ref term-input-ring pos))))