From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: remi.ricard@gmail.com Newsgroups: gmane.emacs.help Subject: Problem with font-lock-add-keywords Date: Wed, 22 Oct 2008 07:25:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <68eb6fd2-2462-4dc2-90c2-2890700c9a26@79g2000hsk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224701964 27898 80.91.229.12 (22 Oct 2008 18:59:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 18:59:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 21:00:24 2008 connect(): Connection refused 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.50) id 1KsiwO-0002pW-Kp for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 21:00:21 +0200 Original-Received: from localhost ([127.0.0.1]:52977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsivI-0003hx-I9 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 14:59:12 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000hsk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 66.130.248.239 Original-X-Trace: posting.google.com 1224685510 9271 127.0.0.1 (22 Oct 2008 14:25:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 22 Oct 2008 14:25:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000hsk.googlegroups.com; posting-host=66.130.248.239; posting-account=5n84LQoAAADhloM24X5-f6R7iBrWHV7X User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163698 X-Mailman-Approved-At: Wed, 22 Oct 2008 14:58:13 -0400 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:59042 Archived-At: Hi, I was using emacs 21.3 and then switched to emacs 22.3 (on Windows) GNU Emacs 22.3.1 Copyright (C) 2008 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. The following lines were working in 21.3 (font-lock-add-keywords 'c++-mode '( ("\\<[0-9]+\\.[0-9f]+\\>" 0 font-lock-floatnumber-face) ("[^_]\\<\\([0-9]+\\)\\>" (1 font-lock-number-face)) ("\\<0x[0-9a-fA-F]+\\>" (0 font-lock-hexnumber-face)) ("[{}()<>=;:+\\*\\/\\[]\\|\\]\\|\\-" (0 font-lock-keys-face)) ("\\" (0 font-lock-constant-face)) ("\\" (0 font-lock-constant-face)) )) Now in 22.3 I'm getting the follwing error message Error during redisplay: (invalid-function (\<[0-9]+\.[0-9f]+\> 0 font- lock-floatnumber-face)) [3 times] Since my lisp is not that good. I'm asking for help after searching the web and finding nothing about this problem. Remi