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

Fontification gets irritated for long texts #728

Open
quazgar opened this issue Sep 19, 2022 · 4 comments
Open

Fontification gets irritated for long texts #728

quazgar opened this issue Sep 19, 2022 · 4 comments

Comments

@quazgar
Copy link

quazgar commented Sep 19, 2022

For longer markdown documents, markdown-mode sometimes (hard to reproduce) switches the highlighting in the middle of some texts, without and special characters in the vicinity.

See the following image for an example screenshot:
image

Expected Behavior

The highlighting should only change at special characters.

Actual Behavior

The highlighting sometimes appears to be a bit random, with long range interactions: If this bug appears and I change text further up the documents, the errors may seem to move around, sometimes disappear, sometimes reappear again.

Steps to Reproduce

I was not able to reproduce this issue reliably. It only happened for long documents, and sometimes restarting Emacs helps. M-x normal-mode typically only helps for a short time.

Backtrace

Software Versions

  • Markdown Mode: markdown-mode, version 2.5-dev, from Melpa, version: 20210831.1507
  • Emacs: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian
  • OS: Debian
@syohex
Copy link
Collaborator

syohex commented Sep 20, 2022

Could you give us the long markdown text which occurs this issue ?

@quazgar
Copy link
Author

quazgar commented Sep 24, 2022

I am sorry, that specific file is too confidential. But I will post the next example that I can give to the public.

More importantly, I will try to find a way to reproduce the behavior. It does not show on loading the file, but only after some editing. Actually reloading the file (M-x normal-mode) sometimes, but not always, helps to reset markdown-mode's state.

@njsand
Copy link

njsand commented Apr 13, 2023

In the issue description, when you say "without and special characters in the vicinity" do you mean "without any special characters?" Just not quite sure what you're trying to say there - maybe just a typo.

@quazgar
Copy link
Author

quazgar commented Feb 24, 2024

Sorry for the long delay. Yes, it was just a type, I meant "any".

As the screenshot shows, there are no special characters in the word "processes", for example. This is what I meant, the fontification changes from one character to another, without any special characters in between.

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

3 participants