Hello, Dmitry.
On Sat, Feb 23, 2013 at 08:58:50AM +0400, Dmitry Gutov wrote:
Hey Alan,
Alan Mackenzie <address@hidden> writes:
This might well do the trick:
I've applied the patch, bootstrapped, and it [still] has problems with
whitespace-mode. To reproduce:
1. Run emacs -Q
2. Eval (add-hook 'prog-mode 'whitespace-mode)
3. Open any .el file, for example => no syntax highligting
OK, thanks. whitespace-mode disables then re-enables font lock mode.
The code in define-globalized-minor-mode was recording the disable, but
not the re-enable, so it thought the major mode hook had disabled font
lock mode.
I've amended it so that it now takes account of the re-enabling too. I
think this solves the immediate problem.
Here's the patch (based off the trunk of a few days ago). As always,
please do a complete rebuild after applying the patch. Let me know how
it goes, please.