Function: View-search-regexp-backward

View-search-regexp-backward is an interactive and byte-compiled function defined in view.el.gz.

Signature

(View-search-regexp-backward N REGEXP)

Documentation

Search backward for first (or prefix Nth) occurrence of REGEXP in View mode.

Displays line found at center of window. Sets mark at starting position and pushes mark ring.

Characters @ and ! are special at the beginning of REGEXP. They modify the search rather than become part of the pattern searched for.
@ means search all the buffer i.e. start search at the end of buffer.
! means search for a line that contains no match for the pattern.
If REGEXP is empty or only consist of these control characters, then an earlier remembered REGEXP is used, otherwise REGEXP is remembered for use by later search commands.

The variable view-highlight-face controls the face that is used for highlighting the match that is found.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/view.el.gz
(defun View-search-regexp-backward (n regexp)
  "Search backward for first (or prefix Nth) occurrence of REGEXP in View mode.

Displays line found at center of window.  Sets mark at starting position and
pushes mark ring.

Characters @ and ! are special at the beginning of REGEXP.  They modify
the search rather than become part of the pattern searched for.
@ means search all the buffer i.e. start search at the end of buffer.
! means search for a line that contains no match for the pattern.
If REGEXP is empty or only consist of these control characters, then
an earlier remembered REGEXP is used, otherwise REGEXP is remembered
for use by later search commands.

The variable `view-highlight-face' controls the face that is used
for highlighting the match that is found."
  (interactive "p\nsSearch backward (regexp): ")
  (view-search (- n) regexp))