awth13 / org-appear

Toggle visibility of hidden Org mode element parts upon entering and leaving an element
MIT License
363 stars 19 forks source link

New Org 9.7.2 seems to break org-appear #58

Open technician77 opened 1 month ago

technician77 commented 1 month ago

It seem the just released org-mode 9.7 breaks the org-appear package. I get the error below. The built-in org-mode 9.6 works flawlessly with org-appear. Can you confirm?

Error

Error in post-command-hook (org-appear--post-cmd): (wrong-type-argument number-or-marker-p nil)

Versions

GNU Emacs 29.3 (build 2, x86_64-w64-mingw32) of 2024-03-24 Org mode version 9.7.2 (release_N/A-N/A-88dd2c @ c:/home/XXXXX/.emacs.d/elpa/org-9.7.2/)

Config

  (use-package org-appear
    :after org
    :custom
    (org-appear-autolinks t)
    (org-appear-autokeywords t)
    (org-appear-autoemphasis t)
    (org-appear-autoentities t)
    :hook
    (org-mode . org-appear-mode))

Kind regards tech77

awth13 commented 1 month ago

Thank you for the detailed report, @technician77!

This is going to take some time to resolve as there were substantial changes in org-element between versions. In the meantime, org-9.7-fixes has emphasis toggling working (other elements may or may not work).