comp.lang.ada
 help / color / mirror / Atom feed
From: "Ludovic Brenta" <ludovic@ludovic-brenta.org>
Subject: Re: ada-mode and GNAT project files (was: GVD)
Date: 20 Sep 2005 03:47:30 -0700
Date: 2005-09-20T03:47:30-07:00	[thread overview]
Message-ID: <1127213250.732870.169600@g47g2000cwa.googlegroups.com> (raw)
In-Reply-To: <BSQXe.26540$Vm2.14822@reader1.news.jippii.net>

Tapio Kelloniemi a écrit :
> What actually this upstream is for ada-mode (Emacs/FSF or
> ada-mode/AdaCore)? If I have understood correctly, the mode has been
> completely integrated into Emacs and they are responsible for
> maintaining and developing it. Now what does the (there is already
> this functionality) mean? I have thought that ada-mode has support
> for cross-referencing in emacs 21.3 (don't know the ada-mode
> version), but I don't know what is wrong with it or what is better
> in the Ludovic version (I have never used cross-refs).

I emailed my early patches to Emmanuel Briot at AdaCore.  One can get
an older ada-mode as part of emacs (21.4 is current), and a more
recent version from AdaCore's libre site and in Debian package
ada-mode (3.6-2 is current).

ada-mode works with ada-mode project files (*.adp) and has a UI to
edit them from within emacs.

I have a patch that:

* enhances the Ada major mode to edit GNAT Project files (understands
  the "project" keyword, indents, etc.)

* replaces the machinery that reads .adp files with a new one that
  reads .gpr files instead

* finds the .ali files in the object directory specified by the .gpr
  file, which makes cross-references work.

Emmanuel rejected the patch on the grounds that GNAT can generate an
.adp file from a .gpr file, but I'd rather ditch .adp files
altogether.  (my memory is fuzzy on the details on how one is supposed
to generate .adp files from .gpr files).

With my patch, the UI to edit and save .adp files is still there but
useless and it should be removed.  Also, my patch does not support
"includes" or "extends" in GNAT project files (i.e. will not pick up
the source or object directories from them).

> >Therefore we will fork ada-mode.  Any suggestion for another name?
>
> We seemingly will be forking the whole ada toolchain from GNAT to
> ada-mode, what about forking Ada itself.

No, this is not needed at present.  I am only contemplating a fork
of ada-mode.

> However, Ludovics ada-mode supports GNAT projects so what about
> gnat-mode or gnuada-mode. If the fork ever supports Ada2005, it
> could be ada05-mode or something similar. If it will not support
> Ada2005, it could be better to just supply patches for Emacs (I
> suppose that no huge changes have been made).

Emacs is downstream from Emmanuel, so unfortunately a fork is
inevitable if I am to distribute my patched ada-mode.

gnat-mode and gnuada-mode seem fine, but I'd rather not use such an
official name as GNAT or GNU, as I'm a member of neither project.

If the format of .ali file changes with the new GNAT for Debian,
someone will have to update all ada-modes to cope with them for
cross-references to work.  I haven't looked into this yet.  If
Emmanuel does that, it should not be too difficult to merge into
whatever-it-is-called-mode.

-- 
Ludovic Brenta.




  reply	other threads:[~2005-09-20 10:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07 14:42 GVD REH
2005-09-07 14:55 ` GVD Pascal Obry
2005-09-07 15:14   ` GVD Ludovic Brenta
2005-09-09  0:41   ` GVD Kevin K
2005-09-17 21:17   ` GVD Alfred Hilscher
2005-09-18 10:36     ` GVD Pascal Obry
2005-09-18 13:09       ` GVD Ludovic Brenta
2005-09-19  9:37         ` GVD Georg Bauhaus
2005-09-19 10:45         ` GVD Stephane Riviere
2005-09-19 23:36           ` GVD David Trudgett
2005-09-20  5:17             ` GVD Ludovic Brenta
2005-09-20  9:45               ` GVD Tapio Kelloniemi
2005-09-20 10:47                 ` Ludovic Brenta [this message]
2005-09-20 11:43                   ` ada-mode and GNAT project files (was: GVD) rolf.ebert_nospam_
2005-09-20 14:51                   ` Tapio Kelloniemi
2005-09-20 16:35                     ` none
2005-09-20 18:09                       ` Ludovic Brenta
2005-09-20 21:39                       ` ada-mode and GNAT project files Simon Wright
2005-09-20 16:35                     ` ada-mode and GNAT project files (was: GVD) none
2005-09-07 15:00 ` GVD Ludovic Brenta
2005-09-07 15:16   ` GVD REH
2005-09-07 15:37 ` GVD Jean-Pierre Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox