Subject: Re: bug#635: Adding font-lock keywords results in no font-lock at all

From: Klaus Zeitler <[email-masked]>
Date: Tue, 12 Aug 2008 08:43:36 +0200

>>>>> "martin" == martin rudalics <[email-masked]> writes:
    martin> 
    martin> Get your original behavior back by writing something like
    martin> 
    martin> (defun show-tabs () "Show tabs with a slightly changed background"
    martin>   (unless (or font-lock-keywords font-lock-defaults)
    martin>     (set (make-local-variable 'font-lock-defaults) '(nil t)))
    martin>   (font-lock-add-keywords nil '(("\t"  (0 'tab-face t))) t))
    martin> (add-hook 'font-lock-mode-hook 'show-tabs)

Yes, it works now again as expected.

    martin> or by removing the offending lines from font-lock.el ;-(

I can live with your workaround till it's fixed :-).

Thanks a lot for your help.

Klaus

-- 
 --------------------------------------------------
|  Klaus Zeitler      Alcatel-Lucent               |
|  Email:             [email-masked]  |
 --------------------------------------------------
---
Biology is the only science in which multiplication
means the same thing as division.