Reputation: 4441
I think I'm missing something but why, in the following function, root
value is nil
?
(defun test-root ()
(let (root (projectile-project-root))
(message "root: %s\nprojectile: %S" root (projectile-project-root)
This is the result of my evaluation:
root: nil
projectile: "/home/lhooq/test_let/
Upvotes: 0
Views: 129
Reputation: 4441
Because I forgot parentheses...
The correct function is:
(defun test-root ()
(let ((root (projectile-project-root)))
(message "root: %s\nprojectile: %S" root (projectile-project-root)
Upvotes: 1