Closed dcoshea closed 10 years ago
I still see the issue in d38744e.
The issue seems to be related to the order in which highlighting occurs: if I follow these steps:
then at this point, the entire line starting with a "+" in the diff file is highlighted with the background colour (and, incidentally, no delimiters are highlighted). However, if I either:
a. issue M-x font-lock-mode RET twice; or b. type a single character at the start of the buffer, even if I then undo the change; or c. reverse the direction of the hunk using C-c C-r, even if I then undo the change;
then only the "+" is highlighted with the background colour, but the parens are highlighted in red.
It appears then that when diff-mode is first entered, if global-rainbow-delimiters-mode is enabled, diff-mode's highlighting takes precedence over rainbow-delimiters', but then if anything causes highlighting to be performed again, rainbow-delimiters' highlighting beats diff-mode's.
Sounds very much like a duplicate of #10.
I am hitting this problem in GNU Emacs 24.2.2, but not in 23.3.1 with the same .emacs. I have narrowed it down to a simple test case without my .emacs:
Workaround after hitting the issue in a buffer:
The test diff file: