[Emacs-ada-mode] Thanks and my first enquiry Fecha: Mon, 21 Aug 2006 22:26:52 +0200
Stephen Leake
stephen_leake at stephe-leake.org
Thu Aug 24 18:52:06 PDT 2006
Emmanuel Briot <briot at adacore.com> writes:
>> Hmm. On looking thru the code in ada-parse-prj-file, it seems there is
>> not a variable that specifically holds the list of main programs.
>
> Sure there is:
> (ada-xref-get-project-field 'main)
> does what you want I think
Ok, thanks.
>> I haven't found the code that sets make_cmd to the current file when
>> there is no project file, but I will eventually :).
>
> Try: ada-xref-set-default-prj-values, which initializes a project if
> there is none yet.
Ok.
>> First, I believe Pascal was confused; Emacs Ada mode with Emacs
>> project files is fully capable of using the GNAT *.ali files to
>> navigate Ada code, as GPS does. I use that capability all the time,
>> and miss it sorely when I have to edit VHDL or C code.
>
> Not quite in fact, since we have added several features in the ALI files
> (like better support for generics) that are not used from ada-mode. Also
> GPS has caches all around, which makes queries like find all occurrences
> of an entity much faster there.
Ok. I guess we could try to update the lisp code to keep up with GPS.
Another option is to try to use the GPS Ada code do read the ali
files, but interface it with Emacs for navigation.
>> I believe we are both talking about the same tool, yes. At one time,
>> there was an executable that AdaCore distributed that would read a GNAT
>> project file and output an equivalent Emacs project file. That doesn't
>> seem to be in GNAT 5.04a, nor in GNAT-GPL-2006.
>
> Since this was GPL, I could find that version. But to compile it you
> need access to the GNAT sources, and it isn't really easy to distribute
> as a result.
Ok.
--
-- Stephe
More information about the Emacs-ada-mode
mailing list