Suppress spurious warnings from org-element

Thanks to @christoffer-arvidsson for digging into this one!

Resolves #6.
This commit is contained in:
Chris Barrett
2024-05-03 20:50:59 +12:00
parent 5cf0a462cd
commit 00a169c75b

View File

@ -279,7 +279,10 @@ A higher score means that the node will appear less frequently."
(declare (indent 0))
`(if-let* ((buf (car (org-roam-review-buffers))))
(with-current-buffer buf
,@body)
;; KLUDGE: Suppress warnings from org-element about this being a
;; non-org-mode buffer.
(let ((major-mode 'org-mode))
,@body))
(error "No review buffer")))
(defun org-roam-review--daily-file-p (&optional file)