aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2004-07-03 10:06:42 +0000
committerEli Zaretskii2004-07-03 10:06:42 +0000
commit9b19858ed7a0fbd27702f9ba616f3307c97f910c (patch)
treeba1e53c52d2cae606ab1a94944bbc35e7c691892
parent610101de3efe3a59e7fcc8664d6a3756b9981a49 (diff)
downloademacs-9b19858ed7a0fbd27702f9ba616f3307c97f910c.tar.gz
emacs-9b19858ed7a0fbd27702f9ba616f3307c97f910c.zip
(grep-compute-defaults, grep-command)
(grep-program, find-program, grep-find-use-xargs, grep-history) (grep-find-history, grep-tag-default, grep-find-command) (grep-regexp-alist, grep-process-setup, grep-compute-defaults): Add autoload cookies, for unbundled packages that load `compile' and expect all grep-related symbols to become defined.
-rw-r--r--lisp/progmodes/grep.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 1916bde9ea1..a871380d06f 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -74,6 +74,7 @@ than the begining."
74 :version "21.4" 74 :version "21.4"
75 :group 'grep) 75 :group 'grep)
76 76
77;;;###autoload
77(defcustom grep-command nil 78(defcustom grep-command nil
78 "The default grep command for \\[grep]. 79 "The default grep command for \\[grep].
79If the grep program used supports an option to always include file names 80If the grep program used supports an option to always include file names
@@ -100,6 +101,7 @@ call that function before using this variable in your program."
100 (other :tag "Not Set" auto-detect)) 101 (other :tag "Not Set" auto-detect))
101 :group 'grep) 102 :group 'grep)
102 103
104;;;###autoload
103(defcustom grep-find-command nil 105(defcustom grep-find-command nil
104 "The default find command for \\[grep-find]. 106 "The default find command for \\[grep-find].
105The default value of this variable is set up by `grep-compute-defaults'; 107The default value of this variable is set up by `grep-compute-defaults';
@@ -223,6 +225,7 @@ or when it is used with \\[grep-next-match].
223Notice that using \\[next-error] or \\[compile-goto-error] modifies 225Notice that using \\[next-error] or \\[compile-goto-error] modifies
224`complation-last-buffer' rather than `grep-last-buffer'.") 226`complation-last-buffer' rather than `grep-last-buffer'.")
225 227
228;;;###autoload
226(defvar grep-regexp-alist 229(defvar grep-regexp-alist
227 '(("^\\(.+?\\)[:( \t]+\ 230 '(("^\\(.+?\\)[:( \t]+\
228\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\ 231\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\
@@ -258,6 +261,7 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies
258 "Additional things to highlight in grep output. 261 "Additional things to highlight in grep output.
259This gets tacked on the end of the generated expressions.") 262This gets tacked on the end of the generated expressions.")
260 263
264;;;###autoload
261(defvar grep-program 265(defvar grep-program
262 ;; Currently zgrep has trouble. It runs egrep instead of grep, 266 ;; Currently zgrep has trouble. It runs egrep instead of grep,
263 ;; and it doesn't pass along long options right. 267 ;; and it doesn't pass along long options right.
@@ -272,10 +276,12 @@ This gets tacked on the end of the generated expressions.")
272 "The default grep program for `grep-command' and `grep-find-command'. 276 "The default grep program for `grep-command' and `grep-find-command'.
273This variable's value takes effect when `grep-compute-defaults' is called.") 277This variable's value takes effect when `grep-compute-defaults' is called.")
274 278
279;;;###autoload
275(defvar find-program "find" 280(defvar find-program "find"
276 "The default find program for `grep-find-command'. 281 "The default find program for `grep-find-command'.
277This variable's value takes effect when `grep-compute-defaults' is called.") 282This variable's value takes effect when `grep-compute-defaults' is called.")
278 283
284;;;###autoload
279(defvar grep-find-use-xargs nil 285(defvar grep-find-use-xargs nil
280 "Whether \\[grep-find] uses the `xargs' utility by default. 286 "Whether \\[grep-find] uses the `xargs' utility by default.
281 287
@@ -285,9 +291,12 @@ if not nil and not `gnu', it uses `find -print' and `xargs'.
285This variable's value takes effect when `grep-compute-defaults' is called.") 291This variable's value takes effect when `grep-compute-defaults' is called.")
286 292
287;; History of grep commands. 293;; History of grep commands.
294;;;###autoload
288(defvar grep-history nil) 295(defvar grep-history nil)
296;;;###autoload
289(defvar grep-find-history nil) 297(defvar grep-find-history nil)
290 298
299;;;###autoload
291(defun grep-process-setup () 300(defun grep-process-setup ()
292 "Setup compilation variables and buffer for `grep'. 301 "Setup compilation variables and buffer for `grep'.
293Set up `compilation-exit-message-function' and run `grep-setup-hook'." 302Set up `compilation-exit-message-function' and run `grep-setup-hook'."
@@ -303,6 +312,7 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
303 (cons msg code)))) 312 (cons msg code))))
304 (run-hooks 'grep-setup-hook)) 313 (run-hooks 'grep-setup-hook))
305 314
315;;;###autoload
306(defun grep-compute-defaults () 316(defun grep-compute-defaults ()
307 (unless (or (not grep-use-null-device) (eq grep-use-null-device t)) 317 (unless (or (not grep-use-null-device) (eq grep-use-null-device t))
308 (setq grep-use-null-device 318 (setq grep-use-null-device
@@ -448,6 +458,7 @@ temporarily highlight in visited source lines."
448 grep-regexp-alist)) 458 grep-regexp-alist))
449 459
450;; This is a copy of find-tag-default from etags.el. 460;; This is a copy of find-tag-default from etags.el.
461;;;###autoload
451(defun grep-tag-default () 462(defun grep-tag-default ()
452 (save-excursion 463 (save-excursion
453 (while (looking-at "\\sw\\|\\s_") 464 (while (looking-at "\\sw\\|\\s_")