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-Thread: 103376,5d67271dbe637515 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!out04b.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Ada Mode and GNAT Project files References: <48a544a8$0$12944$9b4e6d93@newsspool2.arcor-online.net> <7531755f-d2a5-4907-b732-94149a179ed5@w39g2000prb.googlegroups.com> <6427bdee-a9b9-483e-887b-cfce987be422@2g2000hsn.googlegroups.com> From: Stephen Leake Date: Sat, 16 Aug 2008 09:04:39 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:NQ5Wt//zgMOlcH41C2LQGKXCoew= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 00a8d48a6c92dc74cf41818307 Xref: g2news2.google.com comp.lang.ada:7362 Date: 2008-08-16T09:04:39-04:00 List-Id: Ludovic Brenta writes: > There are two ways to provide support for GNAT project files in ada- > mode: my first approach was to completely replace the .adp project > file with the .gpr file, parse it and extract the source path. I never > went so far as to also find and parse "with"ed project files, though. > The more complete and portable approach, implemented by Stephe Leake, > was to call "gnat ls -P", pass it the project file, and parse the > result. The advantage is that it simplifies parsing and also supports > "with"ed project files. For the record, the current Emacs Ada mode is at: http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html It supports using a GNAT project file directly as an Emacs Ada mode project file, or including a GNAT project file as part of a larger Emacs Ada mode project file. The version in Emacs 22.2 does not support GNAT project files; future Emacs releases will include this support. -- -- Stephe