(fix): Update rename-file-advice to new schemata (#917)

Caused by #908.
This commit is contained in:
Leo Vivier 2020-07-10 19:59:07 +02:00 committed by GitHub
parent ef23f507ec
commit fffef6711f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1236,7 +1236,7 @@ replaced links are made relative to the current buffer."
(new-path (file-truename new-file))
(old-slug (org-roam--get-title-or-slug old-file))
(old-desc (org-roam--format-link-title old-slug))
(new-slug (or (car (org-roam-db--get-titles old-path))
(new-slug (or (org-roam-db--get-titles old-path)
(org-roam--path-to-slug new-path)))
(new-desc (org-roam--format-link-title new-slug))
(new-buffer (or (find-buffer-visiting new-path)