Exclude backup files from renaming advice (#915)

Co-authored-by: Leo Vivier <leo.vivier+dev@gmail.com>
This commit is contained in:
Matthew Ryall 2020-07-10 22:18:33 +01:00 committed by GitHub
parent fffef6711f
commit 1574e0d351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))