emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot activate font-lock-mode


From: Chong Yidong
Subject: Re: cannot activate font-lock-mode
Date: Fri, 20 Apr 2007 14:43:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> Now, when desktop.el loads it, it asks if I want to apply the
>>> font-lock-keywords customisation, because it is risky (is it?).
>
>> Font-lock can modify arbitrary text properties, such as display
>> strings, and not just faces.
>
> And it can also directly run any code, which is even more immediately scary.
> We should probably write a font-lock-keywords-safe-p.  Something like the
> one below, maybe.

> ....
> +(put 'font-lock-keywords 'safe-local-variable 'font-lock-keywords-safe-p)

I suggest not changing this until we have time to discuss this,
i.e. after the release.  It would not be good to introduce a security
risk into Emacs at the 11th hour.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]