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-08 19:29:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.neo.rr.com.POSTED!not-for-mail From: Jeremy Subject: Re: Ada Mode for Emacs Newsgroups: comp.lang.ada Message-ID: References: User-Agent: Pan/0.11.2 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso885915 Content-Transfer-Encoding: 8bit X-Comment-To: "chris.danx" Date: Sun, 09 Jun 2002 02:34:49 GMT NNTP-Posting-Host: 24.209.41.19 X-Complaints-To: abuse@rr.com X-Trace: twister.neo.rr.com 1023590089 24.209.41.19 (Sat, 08 Jun 2002 22:34:49 EDT) NNTP-Posting-Date: Sat, 08 Jun 2002 22:34:49 EDT Organization: Road Runner High Speed Online -- Northeast Ohio Xref: archiver1.google.com comp.lang.ada:25575 Date: 2002-06-09T02:34:49+00:00 List-Id: Your apt to start a war (or maybe I am) talking about editors, but Emacs is the best for Ada! You need to download the Ada mode for Emacs. It can be found at: http://libre.act-europe.fr/ 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. Once you get the mode, remove the Always Indent feature you enabled and watch Emacs do what it's best at. Jeremy On Sat, 08 Jun 2002 20:26:39 -0400, chris.danx wrote: > Hi, > > I'm having a spot of bother with Emacs and since I don't know if it's > ada mode specific I thought I'd ask here rather than gnu.emacs.help > (there are ppl here who use emacs IIRC). The problem is that when TAB > is pressed it won't indent further than the previous line, and won't > allow lines to be indented of my free will (indentations can be > decreased but not increased). > > I did some digging and found an option > > Emacs->Editing->Indent->Tab Always Indent > > which controls the global behaviour. This is non-nil and works for > non-Ada files. I haven't tried editing files for other languages, so I > don't know if this is Ada mode specific. Does Ada mode override this > setting, or is it a more general programming setting? I've tried > fiddling with the Ada mode settings a little, but to no avail. Also > looked through most of the customisation settings, but might have missed > it. > > This is most annoying since it doesn't allow information to be formatted > in a neat way, comments in particular: > > e.g. > > -- author: Bob > -- date: 7th June 2002 > -- last modified: 7th June 2002 > > > The alternative emacs is currenlty imposing just looks silly. Any > ideas? > > > Chris.