diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 51749acb217..41fcd062fb8 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -2899,6 +2899,7 @@ directories. REGEXP should use constructs supported by your local `grep' command." (interactive "sSearch marked files (regexp): ") (require 'grep) + (require 'xref) (defvar grep-find-ignored-files) (declare-function rgrep-find-ignored-directories "grep" (dir)) (let* ((files (dired-get-marked-files nil nil nil nil t))