branch: elpa/projectile
commit 9646d2516f1369822d27b51407c51cb639d62d20
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Fix projectile-default-generic-command dropping lambda commands
    
    The function used fboundp + symbol-function which only works for
    symbols.  Actual lambda/closure values would silently return nil.
    Use funcall directly, which handles both symbols and lambdas.
---
 projectile.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/projectile.el b/projectile.el
index 0fadc861c8..ec4d09884d 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5210,8 +5210,7 @@ be string to be executed as command."
      ((not command) nil)
      ((stringp command) command)
      ((functionp command)
-      (if (fboundp command)
-          (funcall (symbol-function command))))
+      (funcall command))
      (t
       (error "The value for: %s in project-type: %s was neither a function nor 
a string" command-type project-type)))))
 

Reply via email to