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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5d67271dbe637515 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!w39g2000prb.googlegroups.com!not-for-mail From: deadlyhead Newsgroups: comp.lang.ada Subject: Re: Ada Mode and GNAT Project files Date: Fri, 15 Aug 2008 03:19:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7531755f-d2a5-4907-b732-94149a179ed5@w39g2000prb.googlegroups.com> References: <48a544a8$0$12944$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 67.171.30.9 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1218795541 29570 127.0.0.1 (15 Aug 2008 10:19:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 15 Aug 2008 10:19:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w39g2000prb.googlegroups.com; posting-host=67.171.30.9; posting-account=snJuNwoAAABnc8T9lYkBlDQrDdSjOjG2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1625 Date: 2008-08-15T03:19:01-07:00 List-Id: On Aug 15, 1:56=A0am, Georg Bauhaus wrote: > I'd vote against a complete replacement and in favor > of a simple abstraction: > > =A0- where to find files and > > =A0- where to find navigation information > > (such as can be extracted from .ali files). =A0Then 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. > =A0 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.