From f5d5b83b498c34a1e2a14760be9a260782ac8df5 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 11 Mar 2020 00:34:08 +0800 Subject: [PATCH] (bugfix): fix missed org-roam-link-title-format uses (#268) In #261 we allowed org-roam-link-title-format to be a function, but missed some of its uses during the update. h.t. @alanz --- org-roam.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-roam.el b/org-roam.el index ee2643a..5ffec83 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1250,10 +1250,10 @@ Otherwise, behave as if called interactively." (path (file-truename file)) (new-path (file-truename new-file)) (slug (org-roam--get-title-or-slug file)) - (old-title (format org-roam-link-title-format slug)) + (old-title (org-roam--format-link-title slug)) (new-slug (or (car (org-roam--db-get-titles path)) (org-roam--path-to-slug new-path))) - (new-title (format org-roam-link-title-format new-slug))) + (new-title (org-roam--format-link-title new-slug))) (org-roam--db-clear-file file) (dolist (file-from files-to-rename) (let* ((file-from (car file-from))