From 859357ab637df614f6a33052cb5de6d5ded58a8c Mon Sep 17 00:00:00 2001 From: DEADB17 Date: Sat, 11 Mar 2017 13:08:46 -0500 Subject: [PATCH] remove selected project instead of current project `m-x counsel-projectile-switch-project` `m-o r` removes the *current* project from `projectile-known-projects` instead of the selected one. The expected behaviour is for the action to operate on the *selection*, which is the case for the rest of the actions. I was not able to determine why this was happening. The use of dynamic binding and my inexperience with the elisp debugger were a limitation; It looks like it might be an inconsistency in projectile, but not necessarily a bug. --- counsel-projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 30b4f37..1653c7a 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -308,7 +308,7 @@ invokes `projectile-commander' instead of "kill all buffers") ("r" (lambda (dir) (let ((projectile-switch-project-action - 'projectile-remove-current-project-from-known-projects)) + (lambda () (projectile-remove-known-project dir)))) (projectile-switch-project-by-name dir arg))) "remove from known projects") ("l" (lambda (dir)