1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00

cc-fonts.el fix for bug#9443 (tiny change)

* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
Check for null c-opt-block-decls-with-vars-key.
This commit is contained in:
OKAZAKI Tetsurou 2011-09-07 00:15:42 -07:00 committed by Glenn Morris
parent 183fc730a3
commit ff7271b993
2 changed files with 7 additions and 1 deletions

View 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

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