-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
New file has no highlighting when using diff-hl-flydiff-mode
(and make Emacs slow)
#226
Comments
diff-hl-flydiff-mode
(and can be laggy)diff-hl-flydiff-mode
(and make Emacs slow)
Hi! Thanks for the report. It seems there are a few other conditions needed to reproduce it. First, So I managed to trigger this once, but don't have a stable scenario yet. |
I've pushed a change that seems logical - please see if the error is gone, and how the performance is now. |
Thanks for the fix for Git. :) I forgot to mention that I was using Hg, not Git, when seeing the issue. |
Okay, could you clarify the scenario then? I create a file, enable python-mode, the syntax highlighting works. No diff highlighting though - but no errors either. We don't get to |
The scenario is the same as the issue description. Issue 1: I can see "syntax highlight" but not "diff-hl highlight". See the screenshot below. Issue 2: It can make Emacs slow, especially when the VC backend is slow, since it queries the backend for a non-existing file for every edit. Note that the |
But it returns |
Repro steps
diff-hl-flydiff-mode
Expected
I can see highlights (all green for each line since they are new)
Actual
There is no highlight. Also, it makes Emacs slow.
Causes
(diff-hl-create-revision file revision)
)The text was updated successfully, but these errors were encountered: