GNU bug report logs -
#7477
[PATCH] cc-mode tries to recognize template in non-templated language
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7477 in the body.
You can then email your comments to 7477 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7477
; Package
emacs
.
(Thu, 25 Nov 2010 03:07:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Colascione <dan.colascione <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 25 Nov 2010 03:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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))
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#7477
; Package
emacs,cc-mode
.
(Mon, 06 Dec 2010 19:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7477 <at> debbugs.gnu.org (full text, mbox):
Hi Alan, could you take a look at this patch? Thanks.
Daniel Colascione <dan.colascione <at> 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))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#7477
; Package
emacs,cc-mode
.
(Thu, 09 Dec 2010 22:16:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7477 <at> debbugs.gnu.org (full text, mbox):
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 <at> 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 sent
to
Alan Mackenzie <acm <at> muc.de>
:
You have taken responsibility.
(Sun, 12 Dec 2010 13:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Daniel Colascione <dan.colascione <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 12 Dec 2010 13:30:04 GMT)
Full text and
rfc822 format available.
Message #16 received at 7477-done <at> debbugs.gnu.org (full text, mbox):
Hi, Daniel.
On Wed, Nov 24, 2010 at 07:12:05PM -0800, Daniel Colascione wrote:
> 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))
Thanks again for the patch! I've committed it.
--
Alan Mackenzie (Nuremberg, Germany).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 10 Jan 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.