From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: Problem with braces in C Date: Thu, 05 Nov 2009 13:47:07 -0500 Organization: A noiseless patient Spider Message-ID: References: <7lfmgfF3dkps3U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257450060 6860 80.91.229.12 (5 Nov 2009 19:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2009 19:41:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 20:40:53 2009 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 1N68CQ-0004UG-0L for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 20:40:50 +0100 Original-Received: from localhost ([127.0.0.1]:52751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N68CP-0001v9-Au for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 14:40:49 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.eternal-september.org U2FsdGVkX1++oJQw7RW4u1qrQUhKAw5BjbsQBsBZtrHzEH7Kwo1D+IL5+qJylAVcCEdvWnqAzvr8Hx2fzD9K1tErBHdKERCPqWGwl7BlkOfwfAN6egq1y8URYYvIstOE1ZiIfaNFrH/ZN9SJeWLpSA== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Thu, 5 Nov 2009 18:47:08 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+TpvXYFr0Q3p9Z8pR6HGPZHjwa4FU4ApXlhitvJ2l1UQ== Cancel-Lock: sha1:FwJUJ8w8AqHxyaQ0MVVCXcgJFHQ= sha1:CTNAyoQWIXQgJ6ii/jLy2LzDtQI= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174432 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:69511 Archived-At: Burkhard Schultheis writes: > We have overtaken a C program package with a horrible huge C function > in it (about 3500 lines of code in a single function!). Now Emacs > 21.3.1 shows unbalanced braces at the first 5 opening braces. But: > > 1.) The code compiles without problems > 2.) We can jump with match-paren to the corresponding closing braces > 3.) A double-click with the left mouse button jumps to the > corresponding braces, too. > 4.) indent-region indents perfectly the whole function. > > Is it a known bug? Are there #if/#ifdef around some parts of the braces? That's what usually gets me. In C code, it's better to use "if" and let the optimizer make the choices. It doesn't confuse Emacs and it's more readable.