Compare commits

...

1 Commits

Author SHA1 Message Date
82733e133a (fix)buffer: skip backlinks where file no longer exists
This is a fix to #1763, and an alternative to #1765. The rationale for
not running a db-sync on buffer redisplay is that this is run on
`post-command-hook` and needs to be fast.
2021-08-21 16:59:34 +08:00

View File

@ -345,6 +345,8 @@ the same time:
from SOURCE-NODE's file for the link (that references the from SOURCE-NODE's file for the link (that references the
other node) at POINT. Acts a child section of the previous other node) at POINT. Acts a child section of the previous
one." one."
(unless (file-exists-p (org-roam-node-file source-node))
(cl-return-from org-roam-node-insert-section))
(magit-insert-section section (org-roam-node-section) (magit-insert-section section (org-roam-node-section)
(let ((outline (if-let ((outline (plist-get properties :outline))) (let ((outline (if-let ((outline (plist-get properties :outline)))
(mapconcat #'org-link-display-format outline " > ") (mapconcat #'org-link-display-format outline " > ")