(fix): fix org-roam--extract-ids at outline level 0 (#1174)

This commit is contained in:
Gustav
2020-10-09 16:00:58 +02:00
committed by GitHub
parent 0cce9d1165
commit e8d3516fa8

View File

@ -623,8 +623,9 @@ If FILE-PATH is nil, use the current file."
(let (result)
;; We need to handle the special case of the file property drawer (at outline level 0)
(org-with-point-at (point-min)
(when-let ((id (org-entry-get nil "ID")))
(push (vector id file-path (org-outline-level)) result)))
(when-let ((before-first-heading (= 0 (org-outline-level)))
(id (org-entry-get nil "ID")))
(push (vector id file-path 0) result)))
(org-map-region
(lambda ()
(when-let ((id (org-entry-get nil "ID")))