From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: font-lock and text mode Date: Mon, 24 Feb 2003 14:46:25 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84lm05vlji.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046094803 9495 80.91.224.249 (24 Feb 2003 13:53:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 13:53:23 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nJ2l-0002Sw-00 for ; Mon, 24 Feb 2003 14:53:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nJ0V-0000WL-06 for gnu-help-gnu-emacs@m.gmane.org; Mon, 24 Feb 2003 08:50:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1046094445 55295820 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:YqVdPCcy1srSUSlm2OUtt3oxs6I= Original-Xref: shelby.stanford.edu gnu.emacs.help:110559 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7061 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7061 Oliver Scholz writes: > I noticed that `hi-lock-mode' doesn't work properly in text mode (CVS > Emacs): after I have added a regexp with `C-x w h', matches already > in the buffer are highlighted, but matching text that I insert after > that is not. I think it works as intended. > Also it seems to be impossible to add highlighting via > font-lock-keywords to text mode. > > (font-lock-add-keywords nil > '(("\\" . font-lock-warning-face))) > > I tried a lot to find the reason for this. I think the deeper reason is that text-mode has no font-lock support. Maybe it is easiest to just use your derived mode. -- A preposition is not a good thing to end a sentence with.