[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with parenthesis matching and autoindentation in MacOS X version
From: |
Juha Nieminen |
Subject: |
Problem with parenthesis matching and autoindentation in MacOS X version of emacs |
Date: |
Mon, 15 Dec 2008 13:18:42 +0200 |
User-agent: |
Thunderbird 2.0.0.18 (Macintosh/20081105) |
I'm using emacs in MacOS X, and it reports its version as:
GNU Emacs 22.1.50.1 (i386-apple-darwin8.10.1, Carbon Version 1.6.0) of
2007-08-20 on macpro
It has an annoying problem/bug regarding parenthesis matching and
autoindentation. (These problems do not happen in the linux nor the
Windows versions.) For example if I write this code in C++ mode:
void foo()
{
if(x < 0 || x >= puzzleWidth || y < 0 || y >= puzzleHeight)
{
}
}
it will report a "Mismatched parenteses" at the parenthesis which ends
the if conditional, and after that it will autoindent the {} symbols
wrongly (as seen above). If I replace the above with this:
void foo()
{
const bool isOutside =
x < 0 || x >= puzzleWidth || y < 0 || y >= puzzleHeight;
if(isOutside)
{
}
}
then it will not report the mismatch, and will indent the {} properly.
Any idea what could be wrong? (As said, this doesn't happen in linux
nor Windows.)
- Problem with parenthesis matching and autoindentation in MacOS X version of emacs,
Juha Nieminen <=