From 1574e0d3513d7338f81c72914715bdac5c91d2d0 Mon Sep 17 00:00:00 2001 From: Matthew Ryall Date: Fri, 10 Jul 2020 22:18:33 +0100 Subject: [PATCH] Exclude backup files from renaming advice (#915) Co-authored-by: Leo Vivier --- org-roam.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org-roam.el b/org-roam.el index 7403b92..a3c3aa8 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1230,6 +1230,8 @@ replaced links are made relative to the current buffer." new-file-or-dir))) (when (and (not (auto-save-file-name-p old-file)) (not (auto-save-file-name-p new-file)) + (not (backup-file-name-p old-file)) + (not (backup-file-name-p new-file)) (org-roam--org-roam-file-p old-file)) (org-roam-db--ensure-built) (let* ((old-path (file-truename old-file))