* font-lock-add-keywords turning off font-lock-mode
@ 2010-05-20 14:50 Nathaniel Flath
2010-05-20 15:13 ` Tassilo Horn
0 siblings, 1 reply; 2+ messages in thread
From: Nathaniel Flath @ 2010-05-20 14:50 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 453 bytes --]
Hello,
I have a piece of lisp in my configuration:
(add-hook 'java-mode-hook
(lambda ()
(font-lock-add-keywords nil
'(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)))))
When this is run, font-lock mode is turned off whenever I open a java file.
Turning font-lock-mode back on works, sans the highlighting of FIXME.
Executing the body of the lambda in a buffer works fine. Does anyone know
what the problem is?
Thanks,
Nathaniel Flath
[-- Attachment #2: Type: text/html, Size: 518 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: font-lock-add-keywords turning off font-lock-mode
2010-05-20 14:50 font-lock-add-keywords turning off font-lock-mode Nathaniel Flath
@ 2010-05-20 15:13 ` Tassilo Horn
0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2010-05-20 15:13 UTC (permalink / raw
To: help-gnu-emacs
Nathaniel Flath <flat0103@gmail.com> writes:
Hi Nathaniel,
> I have a piece of lisp in my configuration:
>
> (add-hook 'java-mode-hook
> (lambda ()
> (font-lock-add-keywords nil
> '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)))))
>
> When this is run, font-lock mode is turned off whenever I open a java
> file. Turning font-lock-mode back on works, sans the highlighting of
> FIXME. Executing the body of the lambda in a buffer works fine. Does
> anyone know what the problem is?
Not really, but I've suffered from a similar problem using emacs 24 from
the bzr repo. But since I updated my copy yesterday, it works again.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-20 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 14:50 font-lock-add-keywords turning off font-lock-mode Nathaniel Flath
2010-05-20 15:13 ` Tassilo Horn
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.