cc-fonts.el fix for bug#9443 (tiny change)
authorOKAZAKI Tetsurou <okazaki.tetsurou@gmail.com>
Wed, 7 Sep 2011 07:15:42 +0000 (00:15 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 7 Sep 2011 07:15:42 +0000 (00:15 -0700)
* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
Check for null c-opt-block-decls-with-vars-key.

lisp/ChangeLog
lisp/progmodes/cc-fonts.el

index 310fb42..2efe3a5 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-07  OKAZAKI Tetsurou  <okazaki.tetsurou@gmail.com>  (tiny change)
+
+       * progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
+       Check for null c-opt-block-decls-with-vars-key.  (Bug#9443)
+
 2011-09-07  Leo Liu  <sdl.web@gmail.com>
 
        * net/rcirc.el (rcirc-mode): Conditionally initialize
index bca95c9..a0089dc 100644 (file)
@@ -1559,7 +1559,8 @@ casts and declarations are fontified.  Used on level 2 and higher."
        (setq decl-context (c-beginning-of-decl-1)
              in-typedef (looking-at c-typedef-key))
        (if in-typedef (c-forward-token-2))
-       (when (looking-at c-opt-block-decls-with-vars-key)
+       (when (and c-opt-block-decls-with-vars-key
+                  (looking-at c-opt-block-decls-with-vars-key))
          (goto-char ps-elt)
          (when (c-safe (c-forward-sexp))
            (c-forward-syntactic-ws)