Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emphasis toggled off when editing #56

Open
tomibennett opened this issue Nov 1, 2023 · 3 comments
Open

emphasis toggled off when editing #56

tomibennett opened this issue Nov 1, 2023 · 3 comments

Comments

@tomibennett
Copy link

tomibennett commented Nov 1, 2023

Hello,

Thank you for your work.

I encounter an issue when upon edition of an emphasis text, the markers disappear, only to reappear when moving the pointer.

I have org-hide-emphasis-markers set to t and org-appear-mode enabled.
If I set org-appear-trigger to 'on-change, then the markers are never shown.

Did I misconfigured the package or is it a bug? I would like them to be displayed as long as my pointer is in the range of emphasis markers. Much like what is shown on the README.

@awth13
Copy link
Owner

awth13 commented Jun 6, 2024

Hello, @tomibennett!

I am sorry it took me a while to respond. The 'on-change mode of toggling means that elements are toggled only when an element is clicked with a mouse or when the buffer is modified. What the latter means depends on whether you use evil but by default nothing is going to be toggled until you start inserting or deleting characters.

Let me know if this helps!

@Roger-Roger-debug
Copy link

Roger-Roger-debug commented Sep 30, 2024

I think I just stumbled on the same issue. I'm using evil (and the evil hook), maybe that plays into it?

I think the only way I have found to reliably trigger the bug is to add highlighting in a table, so something like this:

| /minimal/ | *case* |

When I type a letter while inside either of the emphasis markers said markers get shown for a moment and then vanish again. The same can happen outside of tables but I don't know how I'm triggering the bug there. If I manage to trigger it the bug will persist until I delete all emphasis markers in the buffer (I think?).

@SPFabGerman
Copy link
Contributor

@Roger-Roger-debug This seems to be related to #34, which had the same behaviour of disappearing markers after editing text. In my case it was related to the org-pretty-table package. I would suggest disabling all other packages and testing if the bug still persists. If not, then some combination of org-appear and another packages (one that likely messes with fontification too) just doesn't work well together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants