branch: elpa/aidermacs commit ff06a9711a8113c82c887ec8d6b646c7968f027e Merge: 7b44ddfe20 7e2ec84aee Author: Matthew Zeng <matthew...@posteo.net> Commit: GitHub <nore...@github.com>
Merge pull request #26 from mwolson/main --- aidermacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aidermacs.el b/aidermacs.el index f213ac2501..af45899aab 100644 --- a/aidermacs.el +++ b/aidermacs.el @@ -65,7 +65,7 @@ When nil, disable auto-commits requiring manual git commits." (defun aidermacs-project-root () "Get the project root using project.el, VC, or fallback to file directory." - (or (when (fboundp 'project-current) + (or (when (and (fboundp 'project-current) (project-current)) (project-root (project-current))) (vc-git-root default-directory) (when buffer-file-name