Fix org-category advice

The code broke because an org-element internal function was refactored.
Hopefully this isn't a sign of things to come...
This commit is contained in:
Kiana Sheibani 2024-06-13 15:19:13 -04:00
parent eaea77467c
commit dda11ab032
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -3595,7 +3595,7 @@ To fix this issue, it is thankfully rather simple to patch Org-mode's category s
(defadvice! ~/org-default-category (old-fn)
"Modify how Org resolves the default category through the
`org-category' variable."
:around '(org-refresh-category-properties org-element--get-category)
:around '(org-refresh-category-properties org-element-org-data-parser)
(let ((org-category (or org-category (org-get-title))))
(funcall old-fn)))
#+end_src