0

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/
Lhooq
  • 4,281
  • 1
  • 18
  • 37

1 Answers1

1

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)
Lhooq
  • 4,281
  • 1
  • 18
  • 37