awth13 / org-appear

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

`org-appear-autolinks` stop work after the cursor swept org-ref cite link #15

Closed HyunggyuJang closed 3 years ago

HyunggyuJang commented 3 years ago

Hi, I'm enjoying your endeavour! I think this package is indeed elegant solution both for appearance and explicit for accurate editing.

However, today, I felt some buggy behavior, namely it stops working after it encounters org-ref 's cite link: For example, I have cite:avigadTheoremProvingLean bibtex site link in the org buffer, and after the cursor laid that cite link, not only for the autolinks feature, but also org-appear as whole stop to work at that buffer.

Here is the typical message from when org-apear become panic:

Error in post-command-hook (org-appear--post-cmd): (wrong-type-argument integer-or-marker-p nil)
Avigad, J., Theorem Proving in Lean, , (), 173 (). 

Thanks for reading this issue!

Best regards,

-- Hyunggyu Jang.

awth13 commented 3 years ago

Hi, @HyunggyuJang!

Thank you for your kind words and thank you for alerting me to the issue! It is now fixed so I will close the issue in a minute.

HyunggyuJang commented 3 years ago

Thanks for your quick reply!

I can confirm the issue I encountered completely resolved!

Really appreciate this superb package!

Best regards,

-- Hyunggyu Jang

mclearc commented 3 years ago

It looks like this problem might have returned. I'm noticing that commit f0e9d53 * Ignore whitespace in elements reintroduces the error. The previous commit c3466c4 * @ Don't unhide elements until point is inside works fine.

awth13 commented 3 years ago

Thank you for the heads up, @mclearc.

The issue is resolved and I took steps to make sure this bug will not be reintroduced in the future.