From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: How do I make emacs indent treat #ifdef and #endif as if they were { and }? Date: Wed, 08 Feb 2012 16:57:56 -0500 Message-ID: References: <1AEEB8AA-7A49-4338-B5EC-9234FE5C1CFD@venalicium.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1328738308 4431 80.91.229.3 (8 Feb 2012 21:58:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2012 21:58:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 08 22:58:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RvFWz-0003pt-JP for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Feb 2012 22:58:25 +0100 Original-Received: from localhost ([::1]:43765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvFWz-0000jH-4t for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Feb 2012 16:58:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvFWu-0000jA-Hy for help-gnu-emacs@gnu.org; Wed, 08 Feb 2012 16:58:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvFWt-0001v5-GT for help-gnu-emacs@gnu.org; Wed, 08 Feb 2012 16:58:20 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvFWt-0001uw-BW for help-gnu-emacs@gnu.org; Wed, 08 Feb 2012 16:58:19 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RvFWn-0003kS-RU for help-gnu-emacs@gnu.org; Wed, 08 Feb 2012 22:58:13 +0100 Original-Received: from 75-17-109-153.lightspeed.nrwlct.sbcglobal.net ([75.17.109.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Feb 2012 22:58:13 +0100 Original-Received: from kgold by 75-17-109-153.lightspeed.nrwlct.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Feb 2012 22:58:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 75-17-109-153.lightspeed.nrwlct.sbcglobal.net User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <1AEEB8AA-7A49-4338-B5EC-9234FE5C1CFD@venalicium.dk> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83677 Archived-At: If you care about portability, some older compilers do not permit white space before the #. On 2/3/2012 4:49 PM, Jules Colding wrote: > > I've tried to figure out how to make emacs indent #ifdef blocks just > like it would curly brace blocks. With a twist though… I'd prefer if > I could convince emacs to indent include statement half the amount of > whitespace that normal code would be indented.