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