summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2015-07-22 23:08:50 +0300
committerDmitry Gutov <dgutov@yandex.ru>2015-07-22 23:08:50 +0300
commita0b8421e3b246c73ce3f9c1bfc7cce32bc1fe883 (patch)
tree8143bf88fd872e3b3a98d46a04c8a6059a6fd5a5 /lisp/progmodes/xref.el
parente48a116780dfe955023734190d83495da9aea24b (diff)
downloademacs-a0b8421e3b246c73ce3f9c1bfc7cce32bc1fe883.tar.gz
; xref-find-regexp: (require 'grep), for grep-read-files
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 5f681b0f2ce..9d0dd77743f 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -773,6 +773,7 @@ With prefix argument, prompt for the identifier."
With \\[universal-argument] prefix, you can specify the directory
to search in, and the file name pattern to search for."
(interactive (list (xref--read-identifier "Find regexp: ")))
+ (require 'grep)
(let* ((proj (project-current))
(files (if current-prefix-arg
(grep-read-files regexp)