mirror of
https://github.com/chrisbarrett/nursery
synced 2025-08-01 12:17:22 -05:00
Suppress spurious warnings from org-element
Thanks to @christoffer-arvidsson for digging into this one! Resolves #6.
This commit is contained in:
@ -279,7 +279,10 @@ A higher score means that the node will appear less frequently."
|
|||||||
(declare (indent 0))
|
(declare (indent 0))
|
||||||
`(if-let* ((buf (car (org-roam-review-buffers))))
|
`(if-let* ((buf (car (org-roam-review-buffers))))
|
||||||
(with-current-buffer buf
|
(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")))
|
(error "No review buffer")))
|
||||||
|
|
||||||
(defun org-roam-review--daily-file-p (&optional file)
|
(defun org-roam-review--daily-file-p (&optional file)
|
||||||
|
Reference in New Issue
Block a user