bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#7477: [PATCH] cc-mode tries to recognize template in non-templated l


From: Alan Mackenzie
Subject: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language
Date: Thu, 9 Dec 2010 22:35:49 +0000
User-agent: Mutt/1.5.9i

Hi, both!

On Mon, Dec 06, 2010 at 03:01:27PM -0500, Chong Yidong wrote:
> Hi Alan, could you take a look at this patch?  Thanks.
> 
> Daniel Colascione <dan.colascione@gmail.com> writes:
> 
> > If a file in c-mode contains constructs that look like C++ templates,
> > c-mode will try to use parts of the template-matching infrastructure
> > that have not been initialized.
> >
> > === modified file 'lisp/progmodes/cc-engine.el'
> > --- lisp/progmodes/cc-engine.el     2010-11-15 04:13:16 +0000
> > +++ lisp/progmodes/cc-engine.el     2010-11-25 03:09:29 +0000
> > @@ -5889,7 +5889,8 @@
> >    ;; `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))

The patch looks exactly right.  I'll commit it sometime soon.

Thanks, Daniel!

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

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