From cec50c1fedac99e1f48008dfd928b5d69bc2d5ff Mon Sep 17 00:00:00 2001 From: rubikitch Date: Wed, 15 Sep 2010 06:21:33 +0900 Subject: [PATCH] anything-match-plugin.el (anything-compile-source--grep-candidates): Disable when grep-candidates attribute is nil --- anything-match-plugin.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anything-match-plugin.el b/anything-match-plugin.el index 11664b2..769fbeb 100644 --- a/anything-match-plugin.el +++ b/anything-match-plugin.el @@ -462,8 +462,9 @@ If (direct-insert-match) is in the source, this function is used." (let ((use-fast-directory (string-match anything-grep-candidates-fast-directory-regexp - (car (anything-mklist (anything-interpret-value it)))))) - (cond ((and use-fast-directory (assq 'direct-insert-match source)) + (or (car (anything-mklist (anything-interpret-value it))) "")))) + (cond ((not (anything-interpret-value it)) nil) + ((and use-fast-directory (assq 'direct-insert-match source)) (anything-log "fastest version (use-fast-directory and direct-insert-match)") `((candidates . agp-candidates-synchronous-grep--direct-insert-match) (match identity) -- 2.11.4.GIT