From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: font-lock-add-keywords turning off font-lock-mode Date: Thu, 20 May 2010 17:13:14 +0200 Message-ID: <87aarufvxx.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274369335 14347 80.91.229.12 (20 May 2010 15:28:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 15:28:55 +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 17:28:54 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 1OF7g3-0005RP-IK for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 17:28:51 +0200 Original-Received: from localhost ([127.0.0.1]:49590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF7Ye-00009S-TI for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 11:21:13 -0400 Original-Received: from [140.186.70.92] (port=54577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF7Ro-0006Yn-Da for help-gnu-emacs@gnu.org; Thu, 20 May 2010 11:14:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF7RF-0002l9-VP for help-gnu-emacs@gnu.org; Thu, 20 May 2010 11:13:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35788) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF7RD-0002kT-91 for help-gnu-emacs@gnu.org; Thu, 20 May 2010 11:13:32 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OF7R8-0006tw-2I for help-gnu-emacs@gnu.org; Thu, 20 May 2010 17:13:26 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 May 2010 17:13:26 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 May 2010 17:13:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:en1MD1rrZX1qeh7DhnjgI5hbAtg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:73692 Archived-At: Nathaniel Flath 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