From: Alan Mackenzie <acm@muc.de>
To: Daniel Colascione <dan.colascione@gmail.com>
Cc: 7477-done@debbugs.gnu.org
Subject: bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language
Date: Sun, 12 Dec 2010 13:50:17 +0000 [thread overview]
Message-ID: <20101212135017.GA2831__45413.8510897339$1292161975$gmane$org@muc.de> (raw)
In-Reply-To: <4CEDD405.7080706@gmail.com>
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).
prev parent reply other threads:[~2010-12-12 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-25 3:12 bug#7477: [PATCH] cc-mode tries to recognize template in non-templated language Daniel Colascione
2010-12-06 20:01 ` Chong Yidong
2010-12-09 22:35 ` Alan Mackenzie
2010-12-12 13:50 ` Alan Mackenzie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20101212135017.GA2831__45413.8510897339$1292161975$gmane$org@muc.de' \
--to=acm@muc.de \
--cc=7477-done@debbugs.gnu.org \
--cc=dan.colascione@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.