Function: comint-forward-matching-input

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

Signature

(comint-forward-matching-input REGEXP N)

Documentation

Search forward through buffer for input fields that match REGEXP.

If comint-use-prompt-regexp is non-nil, then input fields are identified by lines that match comint-prompt-regexp.

With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-forward-matching-input (regexp n)
  "Search forward through buffer for input fields that match REGEXP.
If `comint-use-prompt-regexp' is non-nil, then input fields are identified
by lines that match `comint-prompt-regexp'.

With prefix argument N, search for Nth following match.
If N is negative, find the previous or Nth previous match."
  (interactive (comint-regexp-arg "Forward input matching (regexp): "))
  (comint-backward-matching-input regexp (- n)))