From 9ebef551572d031655626f046b973a1776e6c47d Mon Sep 17 00:00:00 2001 From: Sam Stites Date: Tue, 1 Feb 2022 08:08:30 -0500 Subject: [PATCH] fix https://github.com/ThomasFKJorna/org-roam-timestamps/issues/12 --- org-roam-timestamps.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-timestamps.el b/org-roam-timestamps.el index 1bb639b..e40917c 100644 --- a/org-roam-timestamps.el +++ b/org-roam-timestamps.el @@ -113,7 +113,7 @@ if you supply the current MTIME." (defun org-roam-timestamps--get-mtime (node) "Get the mtime of the org-roam node NODE." (org-with-wide-buffer - (org-entry-get (org-roam-node-point node) "mtime"))) + (org-entry-get (if node (org-roam-node-point node) (point-marker)) "mtime"))) (defun org-roam-timestamps--get-ctime (pos) "Return the current ctime for the node at point POS."