all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with parenthesis matching and autoindentation in MacOS X version of emacs
@ 2008-12-15 11:18 Juha Nieminen
  2008-12-15 18:39 ` Alan Mackenzie
       [not found] ` <mailman.2805.1229365442.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Juha Nieminen @ 2008-12-15 11:18 UTC (permalink / raw)
  To: help-gnu-emacs

   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.)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-18  0:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 11:18 Problem with parenthesis matching and autoindentation in MacOS X version of emacs Juha Nieminen
2008-12-15 18:39 ` Alan Mackenzie
     [not found] ` <mailman.2805.1229365442.26697.help-gnu-emacs@gnu.org>
2008-12-16 19:46   ` Juha Nieminen
2008-12-17 16:29     ` Alan Mackenzie
     [not found]     ` <mailman.2957.1229530429.26697.help-gnu-emacs@gnu.org>
2008-12-18  0:32       ` Juha Nieminen

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.