aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/cc-engine.el6
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index abe2ed75ad0..49f5d73442e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-09-18 Alan Mackenzie <acm@muc.de>
2
3 Fix fontification of type when followed by "const".
4 * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
5 "known" types from fontification.
6
12013-09-18 Glenn Morris <rgm@gnu.org> 72013-09-18 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp/chart.el (x-display-color-cells): Declare. 9 * emacs-lisp/chart.el (x-display-color-cells): Declare.
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index c8a9c461a9d..582f7ef0a54 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -7408,7 +7408,11 @@ comment at the start of cc-engine.el for more info."
7408 ;; interactive refontification. 7408 ;; interactive refontification.
7409 (c-put-c-type-property (point) 'c-decl-arg-start)) 7409 (c-put-c-type-property (point) 'c-decl-arg-start))
7410 7410
7411 (when (and c-record-type-identifiers at-type (not (eq at-type t))) 7411 (when (and c-record-type-identifiers at-type ;; (not (eq at-type t))
7412 ;; There seems no reason to exclude a token from
7413 ;; fontification just because it's "a known type that can't
7414 ;; be a name or other expression". 2013-09-18.
7415 )
7412 (let ((c-promote-possible-types t)) 7416 (let ((c-promote-possible-types t))
7413 (save-excursion 7417 (save-excursion
7414 (goto-char type-start) 7418 (goto-char type-start)