(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.
This commit is contained in:
Boris Buliga
2020-10-19 07:12:36 +03:00
committed by GitHub
parent a0c4abf579
commit 09fd41ce24
2 changed files with 3 additions and 2 deletions

View File

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

View File

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