From fffef6711f0163a6e1900fef17148a1bce198417 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Fri, 10 Jul 2020 19:59:07 +0200 Subject: [PATCH] (fix): Update rename-file-advice to new schemata (#917) Caused by #908. --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index 7970bbc..7403b92 100644 --- a/org-roam.el +++ b/org-roam.el @@ -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)