Function: reftex-search-document

reftex-search-document is an autoloaded, interactive and byte-compiled function defined in reftex-global.el.gz.

Signature

(reftex-search-document &optional REGEXP)

Documentation

Regexp search through all files of the current document.

Starts always in the master file. Stops when a match is found. To continue searching for next match, use command M-x tags-loop-continue (tags-loop-continue). No active TAGS table is required.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-global.el.gz
;;;###autoload
(defun reftex-search-document (&optional regexp)
  "Regexp search through all files of the current document.
Starts always in the master file.  Stops when a match is found.
To continue searching for next match, use command \\[tags-loop-continue].
No active TAGS table is required."
  (interactive)
  (let ((default (reftex-this-word)))
    (unless regexp
      (setq regexp (read-string (format "Search regexp in document [%s]: "
                                        default))))
    (if (string= regexp "") (setq regexp (regexp-quote default)))

    (reftex-access-scan-info current-prefix-arg)
    (tags-search regexp (list 'reftex-all-document-files))))