From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dino chiesa Newsgroups: gmane.emacs.devel Subject: RE: first-class support for csharp in cc-mode.el Date: Wed, 30 Dec 2009 19:18:47 -0800 Message-ID: References: , <20091230210100.GB2247@muc.de> , <87ljgjuak5.fsf@catnip.gol.com>, <7b501d5c0912301908pa21e057p213645c79dbd7675@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262229548 8242 80.91.229.12 (31 Dec 2009 03:19:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 03:19:08 +0000 (UTC) Cc: Alan MacKenzie , Stefan Monnier , emacs-devel@gnu.org To: , Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 04:19:00 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQBYy-0001XA-96 for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2009 04:19:00 +0100 Original-Received: from localhost ([127.0.0.1]:47389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQBYy-0007Wt-GG for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 22:19:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQBYs-0007WU-PZ for emacs-devel@gnu.org; Wed, 30 Dec 2009 22:18:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQBYn-0007TG-Sa for emacs-devel@gnu.org; Wed, 30 Dec 2009 22:18:54 -0500 Original-Received: from [199.232.76.173] (port=46900 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQBYn-0007TD-MW for emacs-devel@gnu.org; Wed, 30 Dec 2009 22:18:49 -0500 Original-Received: from col0-omc4-s11.col0.hotmail.com ([65.55.34.213]:47737) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQBYm-0004gD-9G; Wed, 30 Dec 2009 22:18:48 -0500 Original-Received: from COL124-W65 ([65.55.34.200]) by col0-omc4-s11.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Dec 2009 19:18:47 -0800 X-Originating-IP: [96.236.193.50] Importance: Normal In-Reply-To: <7b501d5c0912301908pa21e057p213645c79dbd7675@mail.gmail.com> X-OriginalArrivalTime: 31 Dec 2009 03:18:47.0609 (UTC) FILETIME=[F76CF290:01CA89C7] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119104 Archived-At: =20 C# has #region/#endregion=2C #if/#else/#endif=2C #define/#undef=2C and #p= ragma.=20 =20 Using the csharp-mode.el v0.7.0=2C indenting for all of those was broken.=20 =20 Using the updated csharp-mode.el 0.7.1=2C indenting of those things works j= ust fine. And=2C you have your choice to align #if/#else/#endif and #regio= n/#endregion with either the 0'th column or to indent it to the current cod= e scope. #pragma and #define/#undef always go to the 0'th column.=20 =20 The mode is pretty good now. There were some other problems that I clean up= too. The one big remaining sticky point is verbatim literal strings=2C wh= ich is kind of tricky.=20 =20 -Dino =20 ---------------------------------------- > From: deniz.a.m.dogan@gmail.com > Date: Thu=2C 31 Dec 2009 04:08:21 +0100 > Subject: Re: first-class support for csharp in cc-mode.el > To: miles@gnu.org > CC: dpchiesa@hotmail.com=3B acm@muc.de=3B monnier@iro.umontreal.ca=3B ema= cs-devel@gnu.org > > 2009/12/31 Miles Bader : >> Incidentally the thing about C# which annoyed me (using java-mode to try >> and indent C# code) were all the "annotation" things (which start with >> "#")=2C which I _gather_ are supposed to be at the left margin=2C but >> generally cause following indentation to be all messed up. >> >> -Miles >> >> -- >> Liberty=2C n. One of imagination's most precious possessions. >> >> >> > > Actually=2C Visual Studio 2008 indents #region and #endregion to the > same level as the code=2C whereas I think other "preprocessor" > instructions are at the left margin. (But I haven't seen any such > things in C#=2C ever.) > > -- > Deniz Dogan =20 _________________________________________________________________ Hotmail: Free=2C trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/=