:version "21.4"
:group 'grep)
+;;;###autoload
(defcustom grep-command nil
"The default grep command for \\[grep].
If the grep program used supports an option to always include file names
(other :tag "Not Set" auto-detect))
:group 'grep)
+;;;###autoload
(defcustom grep-find-command nil
"The default find command for \\[grep-find].
The default value of this variable is set up by `grep-compute-defaults';
Notice that using \\[next-error] or \\[compile-goto-error] modifies
`complation-last-buffer' rather than `grep-last-buffer'.")
+;;;###autoload
(defvar grep-regexp-alist
'(("^\\(.+?\\)[:( \t]+\
\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
"Additional things to highlight in grep output.
This gets tacked on the end of the generated expressions.")
+;;;###autoload
(defvar grep-program
;; Currently zgrep has trouble. It runs egrep instead of grep,
;; and it doesn't pass along long options right.
"The default grep program for `grep-command' and `grep-find-command'.
This variable's value takes effect when `grep-compute-defaults' is called.")
+;;;###autoload
(defvar find-program "find"
"The default find program for `grep-find-command'.
This variable's value takes effect when `grep-compute-defaults' is called.")
+;;;###autoload
(defvar grep-find-use-xargs nil
"Whether \\[grep-find] uses the `xargs' utility by default.
This variable's value takes effect when `grep-compute-defaults' is called.")
;; History of grep commands.
+;;;###autoload
(defvar grep-history nil)
+;;;###autoload
(defvar grep-find-history nil)
+;;;###autoload
(defun grep-process-setup ()
"Setup compilation variables and buffer for `grep'.
Set up `compilation-exit-message-function' and run `grep-setup-hook'."
(cons msg code))))
(run-hooks 'grep-setup-hook))
+;;;###autoload
(defun grep-compute-defaults ()
(unless (or (not grep-use-null-device) (eq grep-use-null-device t))
(setq grep-use-null-device
grep-regexp-alist))
;; This is a copy of find-tag-default from etags.el.
+;;;###autoload
(defun grep-tag-default ()
(save-excursion
(while (looking-at "\\sw\\|\\s_")