counsel--project-current should use project-root
leahneukirchen opened this issue · 3 comments
At some point project-current
started to return longer lists such as (vc Git "/tmp/myrepo")
, so counsel--project-current
should not simply call cdr
but project-root
to get the directory out of this.
At some point
project-current
started to return longer lists such as(vc Git "/tmp/myrepo")
, socounsel--project-current
should not simply callcdr
Thanks for reporting this! A fix was already proposed in PR #3003, but...
but
project-root
to get the directory out of this.
...I hope to have addressed the issue in a more general way now, which does not assume project-root
(before it, there was only project-roots
, and before that, there was no project.el
!).
I worry that this breaks if (project-current)
returns nil.
I worry that this breaks if
(project-current)
returns nil.
Oops, your worry is justified. Sorry about that, and thanks for catching it.