]> git.eshelyaron.com Git - emacs.git/commitdiff
Ignore errors from font-lock-compile-keywords.
authorAndreas Schwab <schwab@suse.de>
Fri, 30 Dec 2005 14:00:30 +0000 (14:00 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 30 Dec 2005 14:00:30 +0000 (14:00 +0000)
lisp/progmodes/cc-defs.el

index b237dd9a5987ee4236f4eb3e7e9d84ad921dd412..9de0a24f09e872354dd11e13a667c460520d93bb 100644 (file)
@@ -72,7 +72,9 @@
 (eval-after-load "font-lock"
   '(if (and (not (featurep 'cc-fix)) ; only load the file once.
             (let (font-lock-keywords)
-              (font-lock-compile-keywords '("\\<\\>"))
+              (condition-case nil
+                 (font-lock-compile-keywords '("\\<\\>"))
+               (error nil))
              font-lock-keywords))     ; did the previous call foul this up?
        (load "cc-fix")))
 
@@ -83,7 +85,9 @@
           (progn
             (require 'font-lock)
             (let (font-lock-keywords)
-              (font-lock-compile-keywords '("\\<\\>"))
+              (condition-case nil
+                  (font-lock-compile-keywords '("\\<\\>"))
+                (error nil))
               font-lock-keywords)))
       (cc-load "cc-fix")))