From: re@waporo.muc.de (Rolf Ebert)
Subject: Re: [Q] Tools for Ada Quality and Style
Date: 1996/05/06
Date: 1996-05-06T00:00:00+00:00 [thread overview]
Message-ID: <m2afzlthkm.fsf@waporo.muc.de> (raw)
In-Reply-To: 767968529wnr@diphi.demon.co.uk
>>>>> "GB" == Geert Bosch <geert@fozzie.sun3.iaf.nl> writes:
GB> Robert Dewar (dewar@cs.nyu.edu) wrote: `` Such tools, to help entry,
GB> are found useful by many people. I find them annoying and completely
GB> useless, they just intefere with my typing speed. If I have to use
GB> one, I prefer Emacs ada-mode to DEC's LSE approach. ''
Nice to hear.
GB> Since I'm working on an IDE for GNAT/OS2 I've evaluated some methods
GB> that were mentioned to help entering Ada code.
GB> My initial approach (although I don't like it myself) was to do the
GB> standard syntax expansion that many editors provide: type 'if' and
GB> the 'then' and 'end if' appear aligned correctly and the writer can
GB> fill in the blanks.
I don't like it either. That is why we separated statement templates
and the indenting functions in the Emacs mode in two different files
(ada-stmt.el and ada-mode.el). If you don't want templates, you don't
need to load that file. (that's why ada-stmt is so buggy.)
[problem description removed]
GB> And then I do want *some* flexibility in doing the layout.
GB> To solve these problems I've only implemented indentation
GB> support. Having to indent and unindent myself causes most
GB> slow-down. The only drawback I've found so far is that's much harder
GB> to implement then the template approaches. Especially properly
I can feel with you.
GB> aligning begins was really hard, especially if it must be possible
GB> to deal with unfinished code.
[another problem description removed]
GB> Rober Dewar wrote: `` For me I prefer a completely non-intrusive
GB> editor. Other people like an editor which complains to them about
GB> errors as they are entered. To each their own! ''
One of Emacs' (dis-)advantages is its flexibility. You can use it
completely non-intrusive, than you must hit special keys for correcting
your indentation (usually TAB) or code expansion, or you can bind for
example the RETURN key to something called `ada-indent-newline-indent',
which first indent the current line, adds a newline and indents the
newly created empty line.
GB> I'm really curious if you are going to find this an improvement or
GB> not. For me it is in any case, and I'm happy with it. As far as I
GB> know, the indentation rules used fit perfectly with the GNAT style.
I am very happy with the Emacs Ada mode as well :-)
GB> Regards, Geert
GB> -- E-Mail: geert@sun3.iaf.nl *** As far as we know, there have not
GB> been *** Phone: +31-53-4303054 ** any undetected failures in our
GB> software. **
Rolf
next prev parent reply other threads:[~1996-05-06 0:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-17 0:00 Ada naming conventions? Bob Crispen
1996-04-17 0:00 ` Michael F Brenner
1996-04-25 0:00 ` [Q] Tools for Ada Quality and Style JP Thornley
1996-04-26 0:00 ` Ken Garlington
1996-04-27 0:00 ` Bob Crispen
1996-04-28 0:00 ` Robert Dewar
1996-04-29 0:00 ` JP Thornley
1996-04-30 0:00 ` Ken Garlington
1996-04-30 0:00 ` Peter Milliken
1996-04-30 0:00 ` Ken Garlington
1996-04-30 0:00 ` Robert Dewar
1996-05-05 0:00 ` Geert Bosch
1996-05-07 0:00 ` Peter Milliken
1996-04-30 0:00 ` David Sanderson, IV
1996-05-01 0:00 ` [Q] Tools for Ada Quality and Style [LONG] Laurent Guerby
1996-05-02 0:00 ` Robert A Duff
1996-05-02 0:00 ` Robert Dewar
1996-05-02 0:00 ` Robert Dewar
1996-05-02 0:00 ` Robert A Duff
1996-04-30 0:00 ` [Q] Tools for Ada Quality and Style Laurent Guerby
1996-04-30 0:00 ` Frank Falk
1996-04-30 0:00 ` David Weller
1996-05-04 0:00 ` LJMetzger
1996-05-04 0:00 ` Robert Dewar
1996-04-30 0:00 ` Robert A Duff
1996-05-06 0:00 ` Rolf Ebert [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-04-30 0:00 Bob Crispen
1996-04-30 0:00 ` Robert Dewar
1996-05-01 0:00 ` Bob Kitzberger
1996-05-02 0:00 ` Robert Dewar
1996-05-02 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox