[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot activate font-lock-mode
From: |
martin rudalics |
Subject: |
Re: cannot activate font-lock-mode |
Date: |
Tue, 29 May 2007 22:55:17 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> I had this in my local variables section:
>
> mode: font-lock
> font-lock-keywords: ("^\\S-.*:$")
>
> which worked in Emacs 21, but does not work any more in Emacs 22.
It's a regression though personally I'd avoid placing font-lock
directives in the local variables section and would never permit Emacs
hacking them. It would not be overly difficult to put something like a
locally-hacked property on `font-lock-keywords' and have font-lock obey
that rather than evaluating `font-lock-defaults' but I'm afraid we've
missed this opportunity.
> I solved the problem by writing instead:
>
> mode: font-lock
> font-lock-defaults: (("^\\S-.*:$"))
>
> I don't know whether this should be mentioned in the NEWS.
It should be mentioned. Maybe Stefan can enumerate the directives that
can't be set any more.