From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1b4b86c91ace6ed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-09 06:06:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: Ada Mode for Emacs X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <4pIM8.494$ca2.82652@newsfep1-win.server.ntli.net> Date: Sun, 9 Jun 2002 14:05:47 +0100 NNTP-Posting-Host: 80.5.140.234 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1023627968 80.5.140.234 (Sun, 09 Jun 2002 14:06:08 BST) NNTP-Posting-Date: Sun, 09 Jun 2002 14:06:08 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:25591 Date: 2002-06-09T14:05:47+01:00 List-Id: "Jeremy" wrote in message news:pan.2002.06.08.22.29.45.789120.21891@cowgar.com... > Your apt to start a war (or maybe I am) talking about editors, but > Emacs is the best for Ada! I had no intention of starting a war, I just want to control formatting but got no idea what I'm doing! > You need to download the Ada mode for Emacs. It can be found at: > > http://libre.act-europe.fr/ I have it already, it comes with emacs 21.2.1 or has there been an update since then? > Once you have this, Emacs will do all the formatting for you, > perfectly! Places that you want to format with comments such as: > > Put_Line ("Short"); -- Just demo > Put_Line ("Much longer than prev line"); -- Long > > your right, tab will not indent. You will have to use your > space bar, but this is better because a space is always a space > no matter what your editor or platform, therefore your comments > will always align. Yes but most of the editors I use have soft tabs, and that's the way I like it. Emacs is customisable so in theory I should be able to get the same behaviour, unfortunately in practise lack of knowlege of elisp prevents me. > Once you get the mode, remove the Always Indent feature you > enabled and watch Emacs do what it's best at. I don't see how that would help, but I'll try it anyway... ok tried it didn't work. Emacs on windows says tab isn't implemented, don't know about Linux. I suppose what I want is: Soft tabs (i.e. spaces) soft tabs that always work! auto indentation. emacs does auto indentation in ada mode already, so all it needs are soft tabs that always work when tab is hit. Chris