[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-mode causes paren-matching to go haywire in c++-mode
From: |
Peter Lee |
Subject: |
Re: font-lock-mode causes paren-matching to go haywire in c++-mode |
Date: |
Fri, 12 Mar 2004 15:58:29 -0600 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) |
>>>> Benjamin Rutt writes:
Benjamin>
-----------------------------------------------------------------------------
Benjamin> int StormIndexingClient::chooseTable() { int idx = -1;
Benjamin> if ((idx < 1) || (idx > (int)len)) { fprintf(stderr,
Benjamin> "ERROR: invalid input %s\n", line);
Benjamin> }
Benjamin> idx--; return idx;
Benjamin> }
Benjamin>
-----------------------------------------------------------------------------
Benjamin> 2) run emacs -q bug.cpp, and verify you're in c++-mode
Benjamin> 3) type M-x font-lock-mode RET 4) put cursor on line 5
Benjamin> of the resulting buffer (line numbering starting with 1)
Benjamin> 5) place point on the '(' character at the beginning of
Benjamin> the "(idx > ..." expression 6) press C-M-n...instead of
Benjamin> getting placed on the matching paren, you get placed on
Benjamin> the '>' character.
It appears to work fine in fundamental and text mode. The problem
shows up in c++-mode and gnus-article-mode though. Maybe that will
help narrow it down.