From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juha Nieminen Newsgroups: gmane.emacs.help Subject: Problem with parenthesis matching and autoindentation in MacOS X version of emacs Date: Mon, 15 Dec 2008 13:18:42 +0200 Organization: FINNET customers Message-ID: <49463d12$0$4789$9b536df3@news.fv.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229363454 21545 80.91.229.12 (15 Dec 2008 17:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 17:50:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 15 18:51:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCHbm-0006jq-4U for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2008 18:51:54 +0100 Original-Received: from localhost ([127.0.0.1]:42528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCHaa-0003Vr-33 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2008 12:50:40 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder2.news.saunalahti.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 83-102-12-46.dnayritysnetti.net Original-X-Trace: 1229339922 news.fv.fi 4789 83.102.12.46:49211 Original-X-Complaints-To: abuse@news.fv.fi Original-Xref: news.stanford.edu gnu.emacs.help:165297 X-Mailman-Approved-At: Mon, 15 Dec 2008 12:18:45 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60631 Archived-At: 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.)