Exclude backup files from renaming advice (#915)
Co-authored-by: Leo Vivier <leo.vivier+dev@gmail.com>
This commit is contained in:
parent
fffef6711f
commit
1574e0d351
1 changed files with 2 additions and 0 deletions
|
@ -1230,6 +1230,8 @@ replaced links are made relative to the current buffer."
|
||||||
new-file-or-dir)))
|
new-file-or-dir)))
|
||||||
(when (and (not (auto-save-file-name-p old-file))
|
(when (and (not (auto-save-file-name-p old-file))
|
||||||
(not (auto-save-file-name-p new-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--org-roam-file-p old-file))
|
||||||
(org-roam-db--ensure-built)
|
(org-roam-db--ensure-built)
|
||||||
(let* ((old-path (file-truename old-file))
|
(let* ((old-path (file-truename old-file))
|
||||||
|
|
Loading…
Reference in a new issue