(fix): fix get-backlinks failing for unescaped strings (#1008)

Revert to emacsql vector format to retain escaping. Fixes #1007.

Co-authored-by: Leo Vivier <leo.vivier+dev@gmail.com>
This commit is contained in:
Jethro Kuan
2020-08-07 16:06:24 +08:00
committed by GitHub
parent 09b5357a94
commit 4f3668a1e3
2 changed files with 15 additions and 5 deletions

View File

@ -37,6 +37,15 @@
(defvar org-roam-verbose)
;;;; Utility Functions
(defun org-roam--list-interleave (lst separator)
"Interleaves elements in LST with SEPARATOR."
(when lst
(let ((new-lst (list (pop lst))))
(dolist (it lst)
(nconc new-lst (list separator it)))
new-lst)))
(defmacro org-roam--with-temp-buffer (file &rest body)
"Execute BODY within a temp buffer.
Like `with-temp-buffer', but propagates `org-roam-directory'.