💄 comment

This commit is contained in:
Chris Barrett
2022-09-14 11:38:05 +12:00
parent fedd7b8f29
commit 82349b640b

View File

@@ -115,8 +115,11 @@ It is called with the new node as the current buffer."
(dolist (backlink (seq-sort-by #'org-roam-backlink-point #'> backlinks))
(goto-char (org-roam-backlink-point backlink))
(save-match-data
;; This *shouldn't* happen, but I've seen it a few times and I'm not
;; sure why.
(when (org-at-property-drawer-p)
(error "Unexpected attempt to edit property drawer"))
(when (looking-at org-link-any-re)
(replace-match replacement t t))))
(write-region (point-min) (point-max) file))))