diff options
| author | OKAZAKI Tetsurou | 2011-09-07 00:15:42 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-09-07 00:15:42 -0700 |
| commit | ff7271b99367cbaf2fd6c345f6a53fbc7d0ba870 (patch) | |
| tree | 135b07c09414091cf936893eb5b8f1fcbce62d26 | |
| parent | 183fc730a3fd2f113d16125a90ef23ee5fd3659c (diff) | |
| download | emacs-ff7271b99367cbaf2fd6c345f6a53fbc7d0ba870.tar.gz emacs-ff7271b99367cbaf2fd6c345f6a53fbc7d0ba870.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-fonts.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 310fb42a155..2efe3a5e7fe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-09-07 OKAZAKI Tetsurou <okazaki.tetsurou@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): | ||
| 4 | Check for null c-opt-block-decls-with-vars-key. (Bug#9443) | ||
| 5 | |||
| 1 | 2011-09-07 Leo Liu <sdl.web@gmail.com> | 6 | 2011-09-07 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * net/rcirc.el (rcirc-mode): Conditionally initialize | 8 | * net/rcirc.el (rcirc-mode): Conditionally initialize |
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index bca95c97e8b..a0089dc1e24 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el | |||
| @@ -1559,7 +1559,8 @@ casts and declarations are fontified. Used on level 2 and higher." | |||
| 1559 | (setq decl-context (c-beginning-of-decl-1) | 1559 | (setq decl-context (c-beginning-of-decl-1) |
| 1560 | in-typedef (looking-at c-typedef-key)) | 1560 | in-typedef (looking-at c-typedef-key)) |
| 1561 | (if in-typedef (c-forward-token-2)) | 1561 | (if in-typedef (c-forward-token-2)) |
| 1562 | (when (looking-at c-opt-block-decls-with-vars-key) | 1562 | (when (and c-opt-block-decls-with-vars-key |
| 1563 | (looking-at c-opt-block-decls-with-vars-key)) | ||
| 1563 | (goto-char ps-elt) | 1564 | (goto-char ps-elt) |
| 1564 | (when (c-safe (c-forward-sexp)) | 1565 | (when (c-safe (c-forward-sexp)) |
| 1565 | (c-forward-syntactic-ws) | 1566 | (c-forward-syntactic-ws) |