From 11793be240ee90cd5f47fad8becb22dc025943f7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 17 Oct 2018 12:13:03 -0400 Subject: [PATCH] completion/helm: fix void-variable error #954 The grep backend assumes helm-projectile is available and references its variables, but in some cases, it won't be (e.g. if a search command is used early enough after startup). --- modules/completion/helm/autoload/helm.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index 4bed42243..393459dc4 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -62,6 +62,7 @@ workspace." ;; (defun +helm--grep-source () + (require 'helm-projectile) (helm-build-async-source (capitalize (helm-grep-command t)) :header-name (lambda (_name) "Helm Projectile Grep (C-c ? Help)") :candidates-process #'helm-grep-collect-candidates