comp.lang.ada
 help / color / mirror / Atom feed
From: deadlyhead <deadlyhead@gmail.com>
Subject: Re: Ada Mode and GNAT Project files
Date: Fri, 15 Aug 2008 03:19:01 -0700 (PDT)
Date: 2008-08-15T03:19:01-07:00	[thread overview]
Message-ID: <7531755f-d2a5-4907-b732-94149a179ed5@w39g2000prb.googlegroups.com> (raw)
In-Reply-To: 48a544a8$0$12944$9b4e6d93@newsspool2.arcor-online.net

On Aug 15, 1:56 am, Georg Bauhaus <rm.dash-bauh...@futureapps.de>
wrote:
> I'd vote against a complete replacement and in favor
> of a simple abstraction:
>
>  - where to find files and
>
>  - where to find navigation information
>
> (such as can be extracted from .ali files).  Then it is still
> possible to steer the compiler with a -P switch and maybe
> a Lisp variable for the "external" project settings.
>
> One reason is that GNAT project files are, well, GNAT specific.
> They are not standard, though open, but other Ada compilers
> use different project descriptions, use different options,
> and so on.
>   However, all compilers need to know where to find sources,
> and many if not all produce information that can be used
> for navigation.

Well, at the moment, Ada Mode for Emacs is GNAT specific.  This makes
perfect sense, though, as both GNAT and Emacs are part of the GNU
project.  There's nothing stopping proprietary compiler developers
from contributing their own generalizing patches to Ada Mode if they
like, but it's unreasonable, I think, to have a free software project
try to accommodate proprietary vendors' products without access to
their documentation in a free and open manner.

With that out of the way, a different approach would be to add a Lisp
variable to Ada Mode which indicates whether a GNAT *.gpr (or some
other vendors project file) is to be used, and having Ada Mode simply
use that rather than the current (or recently current) .adp files.  It
would take care of the general navigation information you're looking
for, but still provide the added power of whatever project facilities
are provided by the compilation system.



  reply	other threads:[~2008-08-15 10:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15  4:50 Ada Mode and GNAT Project files deadlyhead
2008-08-15  8:56 ` Georg Bauhaus
2008-08-15 10:19   ` deadlyhead [this message]
2008-08-15 10:33     ` Ludovic Brenta
2008-08-16 13:04       ` Stephen Leake
2008-08-15 10:57     ` Georg Bauhaus
2008-08-16 13:07       ` Stephen Leake
replies disabled

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