From e558154272df5c35ac443c32d8a300d5814c4717 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Thu, 22 Jul 2021 20:36:35 +0300 Subject: Fix org-roam-id-at-point throwing errors time to time --- org-roam-ui.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index 9420bf3..9988899 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -124,8 +124,9 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use." "Track changes within Emacs to update Org-roam UI. This function is added to `post-command-hook'." (setq org-roam-ui-current-node-id - (or (org-roam-id-at-point) - org-roam-ui-current-node-id))) + (or + (condition-case nil (org-roam-id-at-point) (error nil)) + org-roam-ui-current-node-id))) (provide 'org-roam-ui) ;;; org-roam-ui.el ends here -- cgit v1.2.3