Stephen Leake writes:
> Ludovic Brenta writes:
>
>> It occurred to me that ada-mode 5 replaces ada-mode.el but not
>> ada-xref.el, so that the function ada-find-file, defined in
>> ada-xref.el from ada-mode 4, is still visible, but obviously doesn't
>> work because the ada-mode 4 project file is missing.
>
> Actually, the problem is the auto-loads in the installed emacs, not
> the presence of the file in load-path.
>
> You are the first to notice this; exactly why is it a problem?
>
> Do you invoke ada-find-file directly for some reason? or load/require
> ada-xref?

Not me; one of our guinea pigs.  He is used to start emacs and then M-x
ada-find immediately.  With ada-mode 4 this works through a kludge in
our ~/.emacs that requires 'ada-xref and creates an emacs Ada project in
memory from $ADA_INCLUDE_PATH.

With ada-mode 5, the project is only created by an ada-mode hook, after
the first Ada file is loaded, so his habit is broken; if a user types
M-x ada-find-file out of habit, they'll get "bad argument type: stringp
nil".  I'd like it better if they got "ada-find-file does not exist" or
something similar.

I have worked around it by populating the file cache (see filecache.el;
I just discovered it the other day) from $ADA_INCLUDE_PATH and adding a
function ada-find-file that says "try C-x C-f and C-TAB instead".  My
question is really meant for other, yet-unknown functions of ada-mode 4
that some users might still rely on.  I'd like to make them all
disappear.  It seems that our best option is to wait for the next
release of emacs.  Do you have any idea about a timeline for this?  I
have not followed emacs development for a long while.

-- 
Ludovic Brenta.

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to