Function: comint-next-matching-input

comint-next-matching-input is an interactive and byte-compiled function defined in comint.el.gz.

Signature

(comint-next-matching-input REGEXP N)

Documentation

Search forwards through input history for match for REGEXP.

(Later history elements are more recent commands.)
With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match.

Probably introduced at or before Emacs version 23.2.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-next-matching-input (regexp n)
  "Search forwards through input history for match for REGEXP.
\(Later history elements are more recent commands.)
With prefix argument N, search for Nth following match.
If N is negative, find the previous or Nth previous match."
  (interactive (comint-regexp-arg "Next input matching (regexp): ") comint-mode)
  (comint-previous-matching-input regexp (- n)))