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

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

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


From: Klaus Zeitler
Subject: bug#635: Adding font-lock keywords results in no font-lock at all
Date: Tue, 12 Aug 2008 08:43:36 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (usg-unix-v)

>>>>> "martin" == martin rudalics <rudalics@gmx.at> 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:             kzeitler@alcatel-lucent.com  |
 --------------------------------------------------
---
Biology is the only science in which multiplication
means the same thing as division.







reply via email to

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