all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: font-lock-add-keywords turning off font-lock-mode
Date: Thu, 20 May 2010 17:13:14 +0200	[thread overview]
Message-ID: <87aarufvxx.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: AANLkTikGoHgKzizE3zVBL5Ndq6y-genkWPs_aXZE9FcL@mail.gmail.com

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




      reply	other threads:[~2010-05-20 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 14:50 font-lock-add-keywords turning off font-lock-mode Nathaniel Flath
2010-05-20 15:13 ` Tassilo Horn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aarufvxx.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.