From e63ee56d904cc9aa1bfb4535ba5d8857974d7061 Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Sun, 20 Nov 2011 22:29:15 +0100 Subject: [PATCH] * anything-config.el (anything-comp-read): appending volatile arg to src was broken. --- anything-config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/anything-config.el b/anything-config.el index a0188ac..02b9cc8 100644 --- a/anything-config.el +++ b/anything-config.el @@ -9445,9 +9445,11 @@ that use `anything-comp-read' See `anything-M-x' for example." (persistent-help . ,persistent-help) (action . ,'action-fn))) (src-list (delq nil (list (and history src-hist) - (if candidates-in-buffer src-1 src))))) - ;; Volatile will have no effect if CANDIDATES-IN-BUFFER is non--nil. - (when volatile (setq src (append src '((volatile))))) + (if candidates-in-buffer + src-1 + (if volatile + (append src '((volatile))) + src)))))) (or (anything-1 :sources src-list -- 2.11.4.GIT