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

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

Re: c-mode imenu: Stack overflow in regexp matcher


From: Glenn Morris
Subject: Re: c-mode imenu: Stack overflow in regexp matcher
Date: Mon, 19 Feb 2007 16:01:52 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Stefan Monnier wrote:

> Yes, I saw that, but it's still not clear to me what's going on
> here. E.g. the "match any non-identifier char" can match a
> parenthesis, is that correct?
>
> I guess a quick fix is to replace [^()] by [^()\n].

Ping, anyone in CC land?

The problematic "[^()]*" part was installed 12-Dec-99, before which it
was just "^\\<.*". If it really needs to match across newlines, maybe
it could match up to some finite number.


1999-12-12  Martin Stjernholm  <address@hidden>

* cc-menus.el (cc-imenu-c++-generic-expression): Match classes with
nonhanging open braces. Don't match the throws clause that might
follow the function prototype in C++.





reply via email to

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