From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathaniel Flath Newsgroups: gmane.emacs.help Subject: font-lock-add-keywords turning off font-lock-mode Date: Thu, 20 May 2010 10:50:42 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd13a0eebf08a048707b2de X-Trace: dough.gmane.org 1274367211 5574 80.91.229.12 (20 May 2010 14:53:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 14:53:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 20 16:53:29 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OF77m-00053Q-PB for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 16:53:27 +0200 Original-Received: from localhost ([127.0.0.1]:48667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF77l-0000zP-Gh for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 10:53:25 -0400 Original-Received: from [140.186.70.92] (port=36704 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF75U-00087h-9Y for help-gnu-emacs@gnu.org; Thu, 20 May 2010 10:51:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF75E-0007dc-Ei for help-gnu-emacs@gnu.org; Thu, 20 May 2010 10:51:04 -0400 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:41076) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF75E-0007ci-9w for help-gnu-emacs@gnu.org; Thu, 20 May 2010 10:50:48 -0400 Original-Received: by pxi12 with SMTP id 12so8792635pxi.0 for ; Thu, 20 May 2010 07:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=n1qnRTiYSrR08vnb1yH/Jdomcb7VqrEzHA40WyOqZfE=; b=MLXZbjOBFplmbLDyjFwhPSbgP9rgsnxQH4IN58IuZHwn3yqwbW9ETYPVo804D+F+2S ipYJ/RUHo0njfauJvWSUe4eD8rJ61lDpqpQdpL47a5bs27ZIwi1ByLW+86EZLjPySTvs 8bXzZpdPzB2G6aQ7DhrHGbO+kM8tFGPR8JpGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JxLSOlsWaKbFoaR1Z1OStOb4opytshIrt9EYMvmkaJ6ad9lGqUG07U1MT5oh5hg2bm gbQBX+z1wMH7016+XAJnhemXPXzVlCkbEN+jbwQ6hlZhx5cY+h4PdOnPF/GmEHX3m97p AAXIA8M7b0SCE2ZtrZOjahf7B4V/14r/yevh4= Original-Received: by 10.141.107.15 with SMTP id j15mr82938rvm.288.1274367043136; Thu, 20 May 2010 07:50:43 -0700 (PDT) Original-Received: by 10.140.172.17 with HTTP; Thu, 20 May 2010 07:50:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73689 Archived-At: --000e0cd13a0eebf08a048707b2de Content-Type: text/plain; charset=ISO-8859-1 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 --000e0cd13a0eebf08a048707b2de Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,
I have a piece of lisp in my configuration:

(add-hook '= ;java-mode-hook
=A0 (lambda ()
=A0=A0 (font-lock-add-keywords nil
= =A0=A0=A0 '(("\\<\\(FIXME\\):" 1 font-lock-warning-face pr= epend)))))

When this is run, font-lock mode is turned off whenever I open a java f= ile.=A0 Turning font-lock-mode back on works, sans the highlighting of FIXM= E.=A0 Executing the body of the lambda in a buffer works fine.=A0 Does anyo= ne know what the problem is?

Thanks,
Nathaniel Flath
--000e0cd13a0eebf08a048707b2de--