awth13 / org-appear

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

Inhibit link flicker when inserting the close parenthesis #14

Closed twlz0ne closed 3 years ago

twlz0ne commented 3 years ago

The blink-paren-function which is called after the close parenthesis of link is inserted, will cause a delay of about 1 second (see blink-matching-delay) before the post-command-hook, it makes the invisible part of the link suddenly hidden and then reappear, for example:

          insert ]      after 1s
[[a][b]| ---------> b| ---------> [[a][b]]|
awth13 commented 3 years ago

Thank you for your work on this, @twlz0ne!

Since people are more likely to use C-c C-l to insert links and since advising Emacs/Org internals is something I would like to avoid at all costs, I will close this PR for now without merging. Sorry.