From 09fd41ce24f32f093f42e3ba1ec3a2d6d26962b7 Mon Sep 17 00:00:00 2001 From: Boris Buliga Date: Mon, 19 Oct 2020 07:12:36 +0300 Subject: [PATCH] (fix): do not kill temp buffer when extracting links for file (#1193) Otherwise it breaks `org-roam-db-build-cache` as it relies on temporary buffer. Without keeping the buffer, `org-roam--extract-links` kills it and any further functionality of file processing breaks. --- CHANGELOG.md | 3 ++- org-roam.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5649abb..a22918f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ ### Bugfixes -- [#1074](https://github.com/org-roam/org-roam/issues/1074) fix `org-roam--extract-links` to handle content boundaries +- [#1074](https://github.com/org-roam/org-roam/issues/1074) fix `org-roam--extract-links` to handle content boundaries. +- [#1193](https://github.com/org-roam/org-roam/issues/1193) fix `org-roam-db-build-cache` by not killing temporary buffer in `org-roam--extract-links`. ## 1.2.2 (06-10-2020) diff --git a/org-roam.el b/org-roam.el index afc0bf2..cf4e8b2 100644 --- a/org-roam.el +++ b/org-roam.el @@ -598,7 +598,7 @@ it as FILE-PATH." :point begin)) (names (pcase type ("id" - (list (car (org-roam-id-find path)))) + (list (car (org-roam-id-find path nil nil 'keep-buffer)))) ("cite" (list path)) ("website" (list path)) ("fuzzy" (list path))