diff --git a/config.org b/config.org index 889772f..9e8c15e 100644 --- a/config.org +++ b/config.org @@ -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)