[Emacs-ada-mode] Thanks and my first enquiry

Stephen Leake stephen_leake at stephe-leake.org
Sun Aug 20 12:18:16 PDT 2006


Manuel Gomez <mgrojo at ya.com> writes:

> El dom, 20-08-2006 a las 10:35 -0400, Stephen Leake escribió:
>> I'll try to summarize some of the points made here, and add them to
>> the web page. I think it is also clear that there should be an Emacs
>> Ada mode manual, to explain these top-level issues.
>
> There is an Ada mode info manual. It can be access in my installation
> from "Ada > Help > Ada mode", as well as from the info directory.

Hmm. It's not in the Ada mode menu in my Emacs, but I do see it in the
top level info directory, and in the Emacs CVS sources. I just never
noticed it before :(.

Thanks for pointing this out; I'll work on improving it, and make sure
it is in the next ada-mode menu.

> The masked-coder known as Randux wrote:
>> 
>> Blast, it seems as though I spoke too soon.  The M-x
>> ada-compile-current doesn't do what I need- it only compiles.  I want
>> it to do a full, normal gnatmake on the module just like C-c C-c was
>> supposed to do.  Sorry about that.  Back to the drawing board.
>> 
>
> What do you mean by module? ada-compile-current compiles just the
> current file, be it the main program, a package body, etc. If you want
> to build different main programs in an Emacs session, I think you should
> define a project file for every main program, and switch to the one
> appropiate when you want to build it. Check the "Ada > Project" submenu.
>
> Perhaps the current behaviour is not the best one for novice users.
> Instead of remembering that the main program was the current file for
> the first C-c C-c invocation, it should ask for a project file or a new
> one when it is not any loaded yet. 

I think it's overkill to require a separate project file for each main
program. Perhaps we can improve the Ada | Project menu to allow
selecting the current main program within the project as well. 

> If advanced users want to compile their sources in a different way,
> perhaps using makefiles or using a simple gnatmake command-line,
> they always could invoke the M-x compile command.

Yes.

-- 
-- Stephe



More information about the Emacs-ada-mode mailing list