all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tudor Achim <t.achim@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#4984: c++ parantheses matching vs templates
Date: Fri, 20 Nov 2009 00:18:33 -0500	[thread overview]
Message-ID: <a5c4f4210911192118h4f00a45bscb305e24186f45c@mail.gmail.com> (raw)

Hi all,
This bug can be reproduced as follows:

open up a c++ file (or set c++ mode)
type (i < 5),
delete the ),
type >,
delete the >,
type ),

and emacs should display Mismatched parentheses, and have incorrect
indentation for subsequent <TAB>s. This was reproduced on versions

GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.1) of
2008-09-05, modified by Ubuntu
GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-08-16
GNU Emacs 22.1.1 (mac-apple-darwin, Carbon Version 1.6.0) of 2009-10-05

Presumably this involves telling the paren-matcher to reparse, rather
than look at its history which makes it think a template instantiation
is going on. If nobody else has time I can take a look at it this
weekend.

Thanks,
Tudor






                 reply	other threads:[~2009-11-20  5:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a5c4f4210911192118h4f00a45bscb305e24186f45c@mail.gmail.com \
    --to=t.achim@gmail.com \
    --cc=4984@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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.