fix(org): fix use of removed function

This commit is contained in:
Kiana Sheibani 2024-07-22 12:40:05 -04:00
parent 5861e16b92
commit 221b4fa145
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -2850,7 +2850,7 @@ the attachment cannot be restored!"
(interactive)
(let* ((archived-p
(lambda (element)
(and (org-element-type-p element 'headline)
(and (eq (org-element-type element) 'headline)
(org-element-property :ARCHIVE_FILE element))))
(lineage (org-element-lineage (org-element-at-point) nil t))
(heading (or (-first archived-p lineage)