[Emacs-ada-mode] [Emacs][ada-mode] ada-xref.el -- missing gnatls in PATH
Stephen Leake
stephen_leake at stephe-leake.org
Sat Nov 17 04:01:22 PST 2007
Pierre-Louis Escouflaire <pierre-louis.escouflaire at eurocontrol.int> writes:
>> I don't think there's any point in attempting to handle the error in
>> ada-initialize-runtime-library; if gnatls isn't found, nothing else
>> will work either, because gnat won't be found.
>
> This is perfectly correct... based on a developer's point of view.
>
> However, I think that Emacs should start properly:
> . for users that only need to read Ada sources,
> . for users in a restrained environment,
> . for users not using the GNAT compiler and tools.
>
> Thus, the 'ada-initialize-runtime-library' behavior might be to warn
> users that some features are not available because of one of the two
> last reasons.
Hmm. I was assuming that if you are not using GNAT, you would not be
using ada-xref. But that's false, since ada-xref provides project
files, which support other compilers.
We really should factor out the project file support from the GNAT
support, but that's a lot of work.
> An extension of this might be to enable/disable shortcuts, menu items,
> etc. whether or not the user is in a restrained environments or
> without the GNAT compiler and tools.
Yes, this is the right approach.
I'll see what I can do for a minimal fix at the moment.
--
-- Stephe
More information about the Emacs-ada-mode
mailing list