Function: grep-find
grep-find is an autoloaded, interactive and byte-compiled function
defined in grep.el.gz.
Signature
(grep-find COMMAND-ARGS)
Documentation
Run grep via find, with user-specified args COMMAND-ARGS.
Collect output in the "*grep*" buffer.
While find runs asynchronously, you can use the C-x ` (next-error) command
to find the text that grep hits refer to.
This command uses a special history list for its arguments, so you can easily repeat a find command.
Probably introduced at or before Emacs version 20.1.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/grep.el.gz
;;;###autoload
(defun grep-find (command-args)
"Run grep via find, with user-specified args COMMAND-ARGS.
Collect output in the \"*grep*\" buffer.
While find runs asynchronously, you can use the \\[next-error] command
to find the text that grep hits refer to.
This command uses a special history list for its arguments, so you can
easily repeat a find command."
(interactive
(progn
(grep-compute-defaults)
(if grep-find-command
(list (read-shell-command "Run find (like this): "
grep-find-command 'grep-find-history))
;; No default was set
(read-string
"compile.el: No `grep-find-command' command available. Press RET.")
(list nil))))
(when command-args
(let ((null-device nil)) ; see grep
(grep command-args))))