Georg Bauhaus <[email protected]> writes:

> Hi,
>
> a recent c.l.ada question was about "./hello_word.exe" (tutorial) being
> treated by windows as expected in the default OS environment.
> I.e. the shell (likely cmd.exe) would not start the executable as given
> by Ada mode, because of the leading "./". Would there be a way to initialize
> 'run_cmd' with effectively
>
>  (concat (file-name-as-directory ".") ${main})
>
> so as to be portable?

Since the current meaning of "." at the time ada-build.el is loaded is
different than at the time the command is run, this won't work.

We could have ada-build-replace-vars expand any occurrence of ".".

Or we could detect what shell is being used at load time; if cmd, don't
include ".".

Since this is only intended for newbies, I suspect the latter is good
enough.

-- 
-- Stephe

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

Reply via email to