GNU bug report logs - #635
Adding font-lock keywords results in no font-lock at all

Previous Next

Package: emacs;

Reported by: Klaus Zeitler <kzeitler <at> alcatel-lucent.com>

Date: Fri, 1 Aug 2008 06:35:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Klaus Zeitler <kzeitler <at> alcatel-lucent.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 635 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: bug#635: Adding font-lock keywords results in no font-lock at all
Date: Tue, 12 Aug 2008 08:43:36 +0200
>>>>> "martin" == martin rudalics <rudalics <at> 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 <at> alcatel-lucent.com  |
 --------------------------------------------------
---
Biology is the only science in which multiplication
means the same thing as division.





This bug report was last modified 14 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.