unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: remi.ricard@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Problem with font-lock-add-keywords
Date: Wed, 22 Oct 2008 07:25:09 -0700 (PDT)	[thread overview]
Message-ID: <68eb6fd2-2462-4dc2-90c2-2890700c9a26@79g2000hsk.googlegroups.com> (raw)

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))
   ("\\<TRUE+\\>" (0 font-lock-constant-face))
   ("\\<FALSE+\\>" (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


                 reply	other threads:[~2008-10-22 14:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=68eb6fd2-2462-4dc2-90c2-2890700c9a26@79g2000hsk.googlegroups.com \
    --to=remi.ricard@gmail.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).