Function: pages-search
pages-search is an interactive and byte-compiled function defined in
page-ext.el.gz.
Signature
(pages-search REGEXP)
Documentation
Search for REGEXP, starting from point, and narrow to page it is in.
Key Bindings
Aliases
search-pages (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/page-ext.el.gz
(defun pages-search (regexp)
"Search for REGEXP, starting from point, and narrow to page it is in."
(interactive (list
(read-string
(format-message "Search for `%s' (end with RET): "
(or pages-last-search "regexp")))))
(if (equal regexp "")
(setq regexp pages-last-search)
(setq pages-last-search regexp))
(widen)
(re-search-forward regexp)
(narrow-to-page))