* progmodes/grep.el (rgrep): Require `find-dired' for `find-name-arg'.
+2009-11-19 Juri Linkov <juri@jurta.org>
+
+ * find-dired.el (find-name-arg): Remove autoload. (Bug#4387)
+
+ * progmodes/grep.el (rgrep): Require `find-dired' for `find-name-arg'.
+
2009-11-19 Chong Yidong <cyd@stupidchicken.com>
* mail/sendmail.el (mail-yank-prefix): Change default to "> ".
:type 'string
:group 'find-dired)
-;;;###autoload
+;; This used to be autoloaded (see bug#4387).
(defcustom find-name-arg
(purecopy (if read-file-name-completion-ignore-case
"-iname"
(setq default-directory dir))))))
-(defvar find-name-arg) ; autoloaded
+(defvar find-name-arg) ; not autoloaded but defined in find-dired
;;;###autoload
(defun rgrep (regexp &optional files dir confirm)
(if (not (string= regexp grep-find-command))
(compilation-start regexp 'grep-mode))
(setq dir (file-name-as-directory (expand-file-name dir)))
+ (require 'find-dired) ; for `find-name-arg'
(let ((command (grep-expand-template
grep-find-template
regexp