(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
This commit is contained in:
Jethro Kuan 2020-03-11 00:34:08 +08:00 committed by GitHub
parent 8a3945945b
commit f5d5b83b49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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