branch: elpa/helm
commit ea8c90359d948125f403e95866ddf068c08c5972
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Filter out no more existing projects in helm-locate-project-list
---
 helm-locate.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helm-locate.el b/helm-locate.el
index b1f64d6fac..90fbaf6715 100644
--- a/helm-locate.el
+++ b/helm-locate.el
@@ -428,8 +428,11 @@ Sort is done on basename of CANDIDATES."
                                      candidate
                                      directory))
                            0)
-                  (error "Failed to create locatedb file `%s'" candidate)))))
-    (cl-loop for p in helm-locate-project-list
+                  (error "Failed to create locatedb file `%s'" candidate))))
+         (projects (cl-loop for p in helm-locate-project-list
+                            when (file-directory-p p)
+                            collect p)))
+    (cl-loop for p in projects
              for db = (expand-file-name
                        helm-ff-locate-db-filename
                        (file-name-as-directory p))

Reply via email to