From 878f95c55d7647723e679ce7a179d584db0c382d Mon Sep 17 00:00:00 2001 From: Eric Danan Date: Thu, 6 Sep 2018 09:39:42 +0200 Subject: [PATCH] cp-grep, cp-git-grep: No longer rely counsel-prompt-function The variable was just removed from counsel --- counsel-projectile.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 5a61e6f..4ca539a 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -677,7 +677,6 @@ called with a prefix argument." (car (split-string counsel-projectile-grep-base-command))) (setq counsel-projectile-grep-command (format counsel-projectile-grep-base-command ignored path)) - (ivy-set-prompt 'counsel-projectile-grep counsel-prompt-function) (ivy-read (projectile-prepend-project-name "grep") #'counsel-projectile-grep-function :initial-input counsel-projectile-grep-initial-input @@ -709,12 +708,7 @@ with a prefix argument." " ")) (counsel-git-grep-cmd-default (concat (string-trim-right counsel-git-grep-cmd-default " \\.") - " " path)) - (counsel-prompt-function - (lambda () - (ivy-add-prompt-count - (format "%s: " (projectile-prepend-project-name - (ivy-state-prompt ivy-last))))))) + " " path))) (counsel-git-grep (or current-prefix-arg cmd) counsel-projectile-grep-initial-input)))