]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-forward-type): Before scanning a template arglist, check that the
authorAlan Mackenzie <acm@muc.de>
Sun, 12 Dec 2010 12:24:56 +0000 (12:24 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 12 Dec 2010 12:24:56 +0000 (12:24 +0000)
current language supports this.

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

index 1659f610f7e9bde15ce5bedb5955add5d47e6e05..dd1b4a400eeb4080293148ca726a13d02d5ff4c9 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-12  Alan Mackenzie  <acm@muc.de>
+
+       * progmodes/cc-engine.el (c-forward-type): Before scanning a
+       template arglist, check that the current language supports this.
+
 2010-12-11  Glenn Morris  <rgm@gnu.org>
 
        * vc/vc-bzr.el (vc-bzr-state-heuristic): Also check that the executable
index 18010407eda3b3f451b42f94833574acc6bad77c..c9e162c91b97acf8860a8f23c0ef116affecfbfe 100644 (file)
@@ -5846,7 +5846,8 @@ comment at the start of cc-engine.el for more info."
   ;; `c-record-type-identifiers' is non-nil.
   ;;
   ;; This function might do hidden buffer changes.
-  (when (looking-at "<")
+  (when (and c-recognize-<>-arglists
+            (looking-at "<"))
     (c-forward-<>-arglist t)
     (c-forward-syntactic-ws))