emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114379: Fix fontification of type when followed by


From: Alan Mackenzie
Subject: [Emacs-diffs] trunk r114379: Fix fontification of type when followed by "const".
Date: Wed, 18 Sep 2013 20:50:00 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114379
revision-id: address@hidden
parent: address@hidden
committer: Alan Mackenzie <address@hidden>
branch nick: trunk
timestamp: Wed 2013-09-18 20:47:37 +0000
message:
  Fix fontification of type when followed by "const".
  * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
  "known" types from fontification.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/progmodes/cc-engine.el    
ccengine.el-20091113204419-o5vbwnq5f7feedwu-1227
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-09-18 05:19:28 +0000
+++ b/lisp/ChangeLog    2013-09-18 20:47:37 +0000
@@ -1,3 +1,9 @@
+2013-09-18  Alan Mackenzie  <address@hidden>
+
+       Fix fontification of type when followed by "const".
+       * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
+       "known" types from fontification.
+
 2013-09-18  Glenn Morris  <address@hidden>
 
        * emacs-lisp/chart.el (x-display-color-cells): Declare.

=== modified file 'lisp/progmodes/cc-engine.el'
--- a/lisp/progmodes/cc-engine.el       2013-09-07 14:33:50 +0000
+++ b/lisp/progmodes/cc-engine.el       2013-09-18 20:47:37 +0000
@@ -7408,7 +7408,11 @@
        ;; interactive refontification.
        (c-put-c-type-property (point) 'c-decl-arg-start))
 
-      (when (and c-record-type-identifiers at-type (not (eq at-type t)))
+      (when (and c-record-type-identifiers at-type ;; (not (eq at-type t))
+                ;; There seems no reason to exclude a token from
+                ;; fontification just because it's "a known type that can't
+                ;; be a name or other expression".  2013-09-18.
+                )
        (let ((c-promote-possible-types t))
          (save-excursion
            (goto-char type-start)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]