unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem with font-lock-add-keywords
@ 2008-10-22 14:25 remi.ricard
  0 siblings, 0 replies; only message in thread
From: remi.ricard @ 2008-10-22 14:25 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-22 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 14:25 Problem with font-lock-add-keywords remi.ricard

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).