emacs-devel
[Top][All Lists]
Advanced

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

Re: Is the doc string for font-lock-add-keywords correct?


From: Lennart Borgman (gmail)
Subject: Re: Is the doc string for font-lock-add-keywords correct?
Date: Fri, 18 Jan 2008 20:33:48 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Glenn Morris wrote:
Lennart Borgman wrote (on Thu, 17 Jan 2008 at 23:51 +0100):

I just tested to add some keywords in the *scratch* buffer, but I can not get any changes to the fontification of the comment.

Give a complete recipe.

Works fine for me:

(font-lock-add-keywords nil '(("FOOBAR" 0 font-lock-warning-face t)))

Now type:

;; FOOBAR is a warning

(You need to do something to trigger refontification.)

It works for me too now. Obviously I did something else than I thought. Maybe I did not trigger enough refontification, don't know.





reply via email to

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