[Emacs-ada-mode] Thanks and my first enquiry Fecha: Mon, 21 Aug 2006 22:26:52 +0200
Emmanuel Briot
briot at adacore.com
Tue Aug 22 03:59:06 PDT 2006
> 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
> 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.
> 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.
> 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.
Emmanuel
More information about the Emacs-ada-mode
mailing list