emacs-devel
[Top][All Lists]
Advanced

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

Re: [BUG] No fontification when font-lock-add-keywords is passed nil as


From: Francis Litterio
Subject: Re: [BUG] No fontification when font-lock-add-keywords is passed nil as the mode
Date: Wed, 23 Jun 2004 14:16:14 -0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

Richard Stallman wrote:

> Does this fix it?  Could people who are more familiar
> with font-lock mode verify this is correct?  I have changed
> the format of a "compiled" keywords list, which might have introduced
> some bugs.

[patch omitted]

No, that patch did not fix it.  I tested your patch by evaluating this form:

(progn
  (require 'font-lock)  
  (if (get-buffer "font-lock-bug-demo")
      (kill-buffer "font-lock-bug-demo"))
  (switch-to-buffer "font-lock-bug-demo")

  (set-face-foreground 'font-lock-keyword-face "red")
  (font-lock-add-keywords nil '(("hello" 0 font-lock-keyword-face t)))
  (turn-on-font-lock)

  (insert "The word 'hello' in this sentence should be red, but it isn't.\n"))




reply via email to

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