fix org-roam--org-roam-file-p

fixes tests
This commit is contained in:
Jethro Kuan
2021-03-24 17:16:08 +08:00
parent 315e2dc447
commit 6bcf164036
3 changed files with 8 additions and 23 deletions

View File

@ -194,7 +194,7 @@ Like `file-name-extension', but does not strip version number."
"Return t if FILE is part of Org-roam system, nil otherwise.
If FILE is not specified, use the current buffer's file-path."
(when-let ((path (or file
(buffer-base-buffer (buffer-file-name)))))
(buffer-file-name (buffer-base-buffer)))))
(save-match-data
(and
(org-roam--org-file-p path)