Function: mh-grep-execute-search
mh-grep-execute-search is a byte-compiled function defined in
mh-search.el.gz.
Signature
(mh-grep-execute-search FOLDER-PATH SEARCH-REGEXP)
Documentation
Execute grep.
Unlike the other search methods, this method does not use the MH-Search buffer. Instead, you simply enter a regular expression in the minibuffer. For help in constructing regular expressions, see your man page for "grep".
In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP is used to search.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
(defun mh-grep-execute-search (folder-path search-regexp)
"Execute grep.
Unlike the other search methods, this method does not use the
MH-Search buffer. Instead, you simply enter a regular expression
in the minibuffer. For help in constructing regular expressions,
see your man page for \"grep\".
In a program, FOLDER-PATH is the directory in which SEARCH-REGEXP
is used to search."
(set-buffer (get-buffer-create mh-temp-index-buffer))
(erase-buffer)
(call-process mh-grep-binary nil '(t nil) nil
"-i" "-r" search-regexp folder-path)
(goto-char (point-min)))