diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-09-10 22:24:40 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-09-10 22:24:40 +0200 |
commit | 7e8f8dae77e7eefa210b101f3e2bef12c1058aa8 (patch) | |
tree | af3916a34382cdadd353770a1d6ee072b7fb117f /helm-grep.el | |
parent | 9f3d9e611fa3da10f705df3f6803da49e1b2eb3d (diff) |
Require helm-adaptive where needed (#1850)
* helm-grep.el (helm-grep-get-file-extensions): Do it.
(helm-grep-ag): Do it.
Diffstat (limited to 'helm-grep.el')
-rw-r--r-- | helm-grep.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-grep.el b/helm-grep.el index e3b41046..2bc0cebb 100644 --- a/helm-grep.el +++ b/helm-grep.el @@ -950,6 +950,7 @@ These extensions will be added to command line with --include arg of grep." (defun helm-grep-get-file-extensions (files) "Try to return a list of file extensions to pass to '--include' arg of grep." + (require 'helm-adaptive) (let* ((all-exts (helm-grep-guess-extensions (mapcar 'expand-file-name files))) (extensions (helm-comp-read "Search Only in: " all-exts @@ -1534,6 +1535,7 @@ if available with current AG version." (defun helm-grep-ag (directory with-types) "Start grep AG in DIRECTORY. When WITH-TYPES is non-nil provide completion on AG types." + (require 'helm-adaptive) (helm-grep-ag-1 directory (helm-aif (and with-types (helm-grep-ag-get-types)) |